We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 703bed9 commit fc1f0eaCopy full SHA for fc1f0ea
packages/tailwindcss/src/variants.ts
@@ -18,7 +18,7 @@ import { DefaultMap } from './utils/default-map'
18
import { isPositiveInteger } from './utils/infer-data-type'
19
import { segment } from './utils/segment'
20
21
-export const IS_VALID_VARIANT_NAME = /^@?[a-zA-Z0-9_-]*$/
+export const IS_VALID_VARIANT_NAME = /^@?[a-zA-Z0-9][a-zA-Z0-9_-]*$/
22
23
type VariantFn<T extends Variant['kind']> = (
24
rule: Rule,
0 commit comments