127 |
${p.generate(p.parse(config)).code}
128 |
${p.generate(defaultExport).code}
129 |
130 | `
131 | })
132 |
--------------------------------------------------------------------------------
/src/css/index.ts:
--------------------------------------------------------------------------------
1 | import * as CSSType from 'csstype'
2 | import * as Utils from '../utils'
3 | import { DefaultThemeMap, NuxtStyleTheme, ThemeKey } from '../config'
4 | import { NuxtThemeTokens } from '#design-tokens/types'
5 |
6 | export type VuePseudos =
7 | | '&:deep('
8 | | '&:slotted('
9 | | ':global('
10 |
11 | export type AdvancedPseudos =
12 | | '&::cue('
13 | | '&::cue-region('
14 | | '&::part('
15 | | '&::slotted('
16 | | '&:dir('
17 | | '&:has('
18 | | '&:host('
19 | | '&:host-context('
20 | | '&:is('
21 | | '&:lang('
22 | | '&:not('
23 | | '&:nth-child('
24 | | '&:nth-last-child('
25 | | '&:nth-last-of-type('
26 | | '&:nth-of-type('
27 | | '&:where(';
28 |
29 | export type SimplePseudos =
30 | | '&::after'
31 | | '&::backdrop'
32 | | '&::before'
33 | | '&::cue'
34 | | '&::cue-region'
35 | | '&::first-letter'
36 | | '&::first-line'
37 | | '&::grammar-error'
38 | | '&::marker'
39 | | '&::placeholder'
40 | | '&::selection'
41 | | '&::spelling-error'
42 | | '&::target-text'
43 | | '&:active'
44 | | '&:after'
45 | | '&:any-link'
46 | | '&:before'
47 | | '&:blank'
48 | | '&:checked'
49 | | '&:current'
50 | | '&:default'
51 | | '&:defined'
52 | | '&:disabled'
53 | | '&:empty'
54 | | '&:enabled'
55 | | '&:first'
56 | | '&:first-child'
57 | | '&:first-letter'
58 | | '&:first-line'
59 | | '&:first-of-type'
60 | | '&:focus'
61 | | '&:focus-visible'
62 | | '&:focus-within'
63 | | '&:fullscreen'
64 | | '&:future'
65 | | '&:hover'
66 | | '&:in-range'
67 | | '&:indeterminate'
68 | | '&:invalid'
69 | | '&:last-child'
70 | | '&:last-of-type'
71 | | '&:left'
72 | | '&:link'
73 | | '&:local-link'
74 | | '&:nth-col'
75 | | '&:nth-last-col'
76 | | '&:only-child'
77 | | '&:only-of-type'
78 | | '&:optional'
79 | | '&:out-of-range'
80 | | '&:past'
81 | | '&:paused'
82 | | '&:picture-in-picture'
83 | | '&:placeholder-shown'
84 | | '&:read-only'
85 | | '&:read-write'
86 | | '&:required'
87 | | '&:right'
88 | | '&:root'
89 | | '&:scope'
90 | | '&:target'
91 | | '&:target-within'
92 | | '&:user-invalid'
93 | | '&:user-valid'
94 | | '&:valid'
95 | | '&:visited';
96 |
97 | export type Pseudos = AdvancedPseudos | SimplePseudos;
98 |
99 | interface NativeProperties extends
100 | CSSType.StandardProperties,
101 | CSSType.StandardShorthandProperties,
102 | CSSType.StandardProperties,
103 | CSSType.SvgProperties {}
104 |
105 | /**
106 | * Pseudos to be used in `css({ ':pseudo': { ...} })`
107 | */
108 | export type PseudosProperties = {
109 | [key in Pseudos]?: NativeProperties
110 | }
111 |
112 | export type CssProperties = NativeProperties & PseudosProperties
113 |
114 | const schemes = {
115 | '@dark': true,
116 | '@light': true
117 | } as const
118 |
119 | export type PermissiveVariants