Comments (10)
Reproduce step: (v1.3.1)
- add custom variant in tailwind.config.js
variants: { borderWidth: ['hover'], },
- generate new types:
tailwindcss-classnames --config tailwind.config.js -o ./src/tailwindcss-classnames.ts
Expected:
All tailwind default TPseudoClasses with extended variants
Actually happening
Only get type for custom variants:
export type TPseudoClasses = | 'hover:border' | 'hover:border-0' ...
Fixed in 423d5ba š
from tailwindcss-classnames.
The "@tailwindcss/plugin" which I use here is just a plugin with custom classes and its not
"https://tailwindui.com/
. (Maybe it's a part of tailwindui).
https://www.npmjs.com/package/@tailwindcss/ui
I would like to add support for First party plugins
.
This is what I mean, we can have thetypes
for tw 3rd-party plugin.https://github.com/aniftyco/awesome-tailwindcss#plugins
The postcss-ts-classnames
project does exactly this. you will need to add the generated types from postcss-ts-classnames
to the this package's exported classnames function.
Maybe will add a feature to the tailwindcss-classnames CLI that does this automatically.
from tailwindcss-classnames.
I will keep more update some more missing type here. Thanks for the library. Great work!
from tailwindcss-classnames.
Missing type default tailwind type
export type TJustifyContent = ...
| 'justify-evenly'
export type TTransforms = 'transform' | TScale | ...
from tailwindcss-classnames.
P/S: Request feature: Generate type for custom plugin
`plugins: [require('@tailwindcss/ui')]
Hi there!
Sure, I would like to add support for First party plugins, but as far as I know, TailwindUI is just components built with regular TailwindCSS classes. Does it have custom classes? I did not purchase an early access to TailwindUI so I do not know!
from tailwindcss-classnames.
Missing type default tailwind type
export type TJustifyContent = ...
| 'justify-evenly'
export type TTransforms = 'transform' | TScale | ...
I did not find this class in tailwindcss' docs. Can you send me a link to it?
from tailwindcss-classnames.
P/S: Request feature: Generate type for custom plugin
`plugins: [require('@tailwindcss/ui')]
Hi there!
Sure, I would like to add support for First party plugins, but as far as I know, TailwindUI is just components built with regular TailwindCSS classes. Does it have custom classes? I did not purchase an early access to TailwindUI so I do not know!
The "@tailwindcss/plugin" which I use here is just a plugin with custom classes and its not "https://tailwindui.com/
. (Maybe it's a part of tailwindui).
https://www.npmjs.com/package/@tailwindcss/ui
I would like to add support for First party plugins
.
This is what I mean, we can have the types
for tw 3rd-party plugin. https://github.com/aniftyco/awesome-tailwindcss#plugins
from tailwindcss-classnames.
Missing type default tailwind type
export type TJustifyContent = ...
| 'justify-evenly'
export type TTransforms = 'transform' | TScale | ...
I did not find this class in tailwindcss' docs. Can you send me a link to it?
Sure
missing one 'justify-evenly'
require 'transform'
for any transformation
from tailwindcss-classnames.
Sure
missing one'justify-evenly'
require'transform'
for any transformation
Fixed both in v1.3.4
The class justify-evenly
is missing from the docs but it has been added to tailwindcss classes.
from tailwindcss-classnames.
Iām closing this issue due to inactivity. Please reopen if you have any questions!
from tailwindcss-classnames.
Related Issues (20)
- Move `vertical-align` values to config file instead of hard-coding HOT 1
- Build is missing negative value classnames HOT 2
- CLI error on version 3.0.0 HOT 3
- CI: npm publish is failing on the ci
- Remove colors.js or pin it to 1.4.0 HOT 1
- Missing color from TailwindCSS. HOT 5
- Missing support for stacking pseudo classes HOT 5
- Custom screen sizes in config file not working HOT 2
- Missing 'group' helper? HOT 3
- idea: function helpers or generics for stacked modifiers HOT 2
- No generated type for 'ring-inset'
- darkMode: 'class' in tailwind.config.js not supported
- Bundle size increased after version 3.0.1 HOT 1
- ClassnameGenerator indexing after filter when generating colors
- Negative value in classname and Outline offset.
- Config with Preset Fail to Generated with CLI HOT 1
- Try to merge similiar utility functions
- Container Queries
- Support v3.1.0
- Make using exactOptionalPropertyTypes TS option easier
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss-classnames.