ropav 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/_plugin-vue_export-helper.js +18 -0
- package/dist/_plugin-vue_export-helper.js.map +1 -0
- package/dist/base.css +147 -0
- package/dist/button.css +66 -0
- package/dist/button.js +62 -0
- package/dist/button.js.map +1 -0
- package/dist/checkbox.css +60 -0
- package/dist/checkbox.js +132 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/components/_internal/icons/CheckIcon.d.ts +18 -0
- package/dist/components/_internal/icons/ChevronDownIcon.d.ts +18 -0
- package/dist/components/_internal/icons/MinusIcon.d.ts +18 -0
- package/dist/components/_internal/icons/index.d.ts +3 -0
- package/dist/components/_internal/optionList.d.ts +9 -0
- package/dist/components/button/button.d.ts +25 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.js +2 -0
- package/dist/components/button/types.d.ts +6 -0
- package/dist/components/checkbox/checkbox.d.ts +23 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.js +2 -0
- package/dist/components/checkbox/types.d.ts +12 -0
- package/dist/components/checkbox/useCheckbox.d.ts +6 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.js +2 -0
- package/dist/components/input/input.d.ts +21 -0
- package/dist/components/input/types.d.ts +14 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/index.js +2 -0
- package/dist/components/radio/radio-group.d.ts +23 -0
- package/dist/components/radio/radio.d.ts +21 -0
- package/dist/components/radio/types.d.ts +24 -0
- package/dist/components/radio/useRadio.d.ts +12 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +2 -0
- package/dist/components/select/select.d.ts +23 -0
- package/dist/components/select/types.d.ts +18 -0
- package/dist/components/select/useSelect.d.ts +21 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.js +2 -0
- package/dist/components/switch/switch.d.ts +23 -0
- package/dist/components/switch/types.d.ts +11 -0
- package/dist/components/switch/useSwitch.d.ts +6 -0
- package/dist/components/tabs/index.d.ts +5 -0
- package/dist/components/tabs/index.js +2 -0
- package/dist/components/tabs/tab-panel.d.ts +21 -0
- package/dist/components/tabs/tabs-list.d.ts +20 -0
- package/dist/components/tabs/tabs-trigger.d.ts +21 -0
- package/dist/components/tabs/tabs.d.ts +23 -0
- package/dist/components/tabs/types.d.ts +18 -0
- package/dist/components/tabs/useTabs.d.ts +19 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.js +2 -0
- package/dist/components/textarea/textarea.d.ts +21 -0
- package/dist/components/textarea/types.d.ts +14 -0
- package/dist/components/textarea/useTextarea.d.ts +6 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.js +2 -0
- package/dist/components/tooltip/tooltip.d.ts +23 -0
- package/dist/components/tooltip/types.d.ts +5 -0
- package/dist/components/tooltip/useTooltip.d.ts +8 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +10 -0
- package/dist/input.css +51 -0
- package/dist/input.js +79 -0
- package/dist/input.js.map +1 -0
- package/dist/radio.css +66 -0
- package/dist/radio.js +160 -0
- package/dist/radio.js.map +1 -0
- package/dist/select.css +122 -0
- package/dist/select.js +362 -0
- package/dist/select.js.map +1 -0
- package/dist/switch.css +70 -0
- package/dist/switch.js +94 -0
- package/dist/switch.js.map +1 -0
- package/dist/tabs.css +45 -0
- package/dist/tabs.js +205 -0
- package/dist/tabs.js.map +1 -0
- package/dist/textarea.css +46 -0
- package/dist/textarea.js +91 -0
- package/dist/textarea.js.map +1 -0
- package/dist/tooltip.css +78 -0
- package/dist/tooltip.js +112 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/useControlState.js +38 -0
- package/dist/useControlState.js.map +1 -0
- package/dist/useRequiredInject.js +11 -0
- package/dist/useRequiredInject.js.map +1 -0
- package/package.json +110 -0
- package/src/styles/_mixins.scss +128 -0
- package/src/styles/_tokens.scss +184 -0
- package/src/styles/_variables.scss +112 -0
- package/src/styles/base.scss +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ropav",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"packageManager": "pnpm@11.9.0",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": "^20.19.0 || ^22.13.0 || >=24.0.0"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"src/styles"
|
|
12
|
+
],
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"**/*.css"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./button": {
|
|
25
|
+
"types": "./dist/components/button/index.d.ts",
|
|
26
|
+
"import": "./dist/components/button/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./checkbox": {
|
|
29
|
+
"types": "./dist/components/checkbox/index.d.ts",
|
|
30
|
+
"import": "./dist/components/checkbox/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./input": {
|
|
33
|
+
"types": "./dist/components/input/index.d.ts",
|
|
34
|
+
"import": "./dist/components/input/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./radio": {
|
|
37
|
+
"types": "./dist/components/radio/index.d.ts",
|
|
38
|
+
"import": "./dist/components/radio/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./select": {
|
|
41
|
+
"types": "./dist/components/select/index.d.ts",
|
|
42
|
+
"import": "./dist/components/select/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./switch": {
|
|
45
|
+
"types": "./dist/components/switch/index.d.ts",
|
|
46
|
+
"import": "./dist/components/switch/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./tabs": {
|
|
49
|
+
"types": "./dist/components/tabs/index.d.ts",
|
|
50
|
+
"import": "./dist/components/tabs/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./textarea": {
|
|
53
|
+
"types": "./dist/components/textarea/index.d.ts",
|
|
54
|
+
"import": "./dist/components/textarea/index.js"
|
|
55
|
+
},
|
|
56
|
+
"./tooltip": {
|
|
57
|
+
"types": "./dist/components/tooltip/index.d.ts",
|
|
58
|
+
"import": "./dist/components/tooltip/index.js"
|
|
59
|
+
},
|
|
60
|
+
"./base.css": "./dist/base.css",
|
|
61
|
+
"./scss/*": "./src/styles/*"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"dev": "pnpm run storybook",
|
|
65
|
+
"tokens:build": "style-dictionary build --config scripts/tokens.config.mjs --silent",
|
|
66
|
+
"tokens:check": "node scripts/check-tokens.mjs",
|
|
67
|
+
"typecheck": "vue-tsc -b tsconfig.app.json tsconfig.node.json",
|
|
68
|
+
"typecheck:storybook": "vue-tsc -p tsconfig.storybook.json --noEmit",
|
|
69
|
+
"test": "vitest run --project=unit",
|
|
70
|
+
"test:exports": "node scripts/check-exports.mjs",
|
|
71
|
+
"test:watch": "vitest --project=unit",
|
|
72
|
+
"test:typecheck": "vitest run --project=unit --typecheck",
|
|
73
|
+
"test:storybook": "vitest run --project=storybook",
|
|
74
|
+
"test:all": "pnpm run tokens:check && pnpm test && pnpm test:storybook",
|
|
75
|
+
"build": "pnpm run tokens:build && pnpm run tokens:check && pnpm run typecheck && vite build",
|
|
76
|
+
"prepublishOnly": "pnpm run build && pnpm run tokens:check",
|
|
77
|
+
"preview": "vite preview",
|
|
78
|
+
"storybook": "pnpm run tokens:build && storybook dev -p 6006 --no-open",
|
|
79
|
+
"build-storybook": "pnpm run tokens:build && pnpm run tokens:check && pnpm run typecheck:storybook && storybook build",
|
|
80
|
+
"release": "bumpp"
|
|
81
|
+
},
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"vue": "^3.6.0-beta.4"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@storybook/addon-themes": "^10.4.6",
|
|
87
|
+
"@storybook/addon-vitest": "^10.4.6",
|
|
88
|
+
"@storybook/vue3-vite": "^10.4.6",
|
|
89
|
+
"@types/node": "^25.9.4",
|
|
90
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
91
|
+
"@vitest/browser-playwright": "^4.1.9",
|
|
92
|
+
"@vue/tsconfig": "^0.9.1",
|
|
93
|
+
"bumpp": "^11.1.0",
|
|
94
|
+
"jsdom": "^29.1.1",
|
|
95
|
+
"playwright": "^1.61.1",
|
|
96
|
+
"sass-embedded": "^1.100.0",
|
|
97
|
+
"storybook": "^10.4.6",
|
|
98
|
+
"style-dictionary": "5.5.0",
|
|
99
|
+
"typescript": "~6.0.3",
|
|
100
|
+
"vite": "^8.1.3",
|
|
101
|
+
"vite-plugin-dts": "^5.0.3",
|
|
102
|
+
"vitest": "^4.1.9",
|
|
103
|
+
"vue": "beta",
|
|
104
|
+
"vue-tsc": "^3.3.6"
|
|
105
|
+
},
|
|
106
|
+
"repository": {
|
|
107
|
+
"type": "git",
|
|
108
|
+
"url": "https://github.com/daopk/ropav"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@mixin flex-center {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin focus-ring {
|
|
8
|
+
border-color: var(--rp-color-control-border-focus);
|
|
9
|
+
box-shadow: 0 0 0 var(--rp-border-width-medium) var(--rp-color-focus-ring);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin visually-hidden {
|
|
13
|
+
position: absolute;
|
|
14
|
+
width: 1px;
|
|
15
|
+
height: 1px;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: -1px;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
clip: rect(0, 0, 0, 0);
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
border-width: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin reset-button {
|
|
25
|
+
padding: 0;
|
|
26
|
+
font: inherit;
|
|
27
|
+
background: none;
|
|
28
|
+
border: none;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin icon-close-button {
|
|
33
|
+
@include flex-center;
|
|
34
|
+
@include reset-button;
|
|
35
|
+
color: inherit;
|
|
36
|
+
opacity: 0.6;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
transition: opacity var(--rp-transition-fast);
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
svg {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@mixin disabled-state {
|
|
51
|
+
opacity: var(--rp-opacity-disabled);
|
|
52
|
+
cursor: not-allowed;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin control-size-vars($prefix) {
|
|
56
|
+
&--sm {
|
|
57
|
+
#{$prefix}-height: var(--rp-size-control-sm);
|
|
58
|
+
#{$prefix}-font: var(--rp-font-size-sm);
|
|
59
|
+
#{$prefix}-px: var(--rp-spacing-3);
|
|
60
|
+
#{$prefix}-radius: var(--rp-radius-md);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&--md {
|
|
64
|
+
#{$prefix}-height: var(--rp-size-control-md);
|
|
65
|
+
#{$prefix}-font: var(--rp-font-size-base);
|
|
66
|
+
#{$prefix}-px: var(--rp-spacing-4);
|
|
67
|
+
#{$prefix}-radius: var(--rp-radius-lg);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&--lg {
|
|
71
|
+
#{$prefix}-height: var(--rp-size-control-lg);
|
|
72
|
+
#{$prefix}-font: var(--rp-font-size-lg);
|
|
73
|
+
#{$prefix}-px: var(--rp-spacing-6);
|
|
74
|
+
#{$prefix}-radius: var(--rp-radius-lg);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin menu-surface($z-index: var(--rp-z-index-dropdown), $surface: var(--rp-color-surface-raised), $radius: var(--rp-radius-lg)) {
|
|
79
|
+
z-index: $z-index;
|
|
80
|
+
background-color: $surface;
|
|
81
|
+
border: var(--rp-border-width-thin) solid var(--rp-color-border);
|
|
82
|
+
border-radius: $radius;
|
|
83
|
+
box-shadow: var(--rp-shadow-md);
|
|
84
|
+
padding: var(--rp-spacing-1) 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@mixin inline-icon($size: 1em) {
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
width: $size;
|
|
91
|
+
height: $size;
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
|
|
94
|
+
svg {
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin semantic-colors($var-name) {
|
|
101
|
+
@each $name in primary, secondary, success, warning, danger, info {
|
|
102
|
+
&--#{$name} { #{$var-name}: var(--rp-color-#{$name}-fg); }
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@mixin semantic-color-pair($color-var, $foreground-var) {
|
|
107
|
+
@each $name in primary, secondary, success, warning, danger, info {
|
|
108
|
+
&--#{$name} {
|
|
109
|
+
#{$color-var}: var(--rp-color-#{$name});
|
|
110
|
+
#{$foreground-var}: var(--rp-color-on-#{$name});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@mixin semantic-state-colors($prefix) {
|
|
116
|
+
@each $name in primary, secondary, success, warning, danger, info {
|
|
117
|
+
&--#{$name} {
|
|
118
|
+
#{$prefix}-bg: var(--rp-color-#{$name});
|
|
119
|
+
#{$prefix}-bg-hover: color-mix(in srgb, var(--rp-color-#{$name}) 90%, var(--rp-color-black));
|
|
120
|
+
#{$prefix}-bg-active: color-mix(in srgb, var(--rp-color-#{$name}) 80%, var(--rp-color-black));
|
|
121
|
+
#{$prefix}-subtle-bg: color-mix(in srgb, var(--rp-color-#{$name}) 10%, transparent);
|
|
122
|
+
#{$prefix}-subtle-bg-hover: color-mix(in srgb, var(--rp-color-#{$name}) 14%, transparent);
|
|
123
|
+
#{$prefix}-subtle-bg-active: color-mix(in srgb, var(--rp-color-#{$name}) 18%, transparent);
|
|
124
|
+
#{$prefix}-fg: var(--rp-color-#{$name}-fg);
|
|
125
|
+
#{$prefix}-on-bg: var(--rp-color-on-#{$name});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
// This file is generated by Style Dictionary.
|
|
2
|
+
// Do not edit directly; update tokens/**/*.tokens.json instead.
|
|
3
|
+
|
|
4
|
+
@use 'variables' as *;
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
// Font family
|
|
8
|
+
--rp-font-family: #{$font-family-base};
|
|
9
|
+
|
|
10
|
+
// Colors
|
|
11
|
+
--rp-color-primary : #{$color-primary};
|
|
12
|
+
--rp-color-secondary : #{$color-secondary};
|
|
13
|
+
--rp-color-success : #{$color-success};
|
|
14
|
+
--rp-color-warning : #{$color-warning};
|
|
15
|
+
--rp-color-danger : #{$color-danger};
|
|
16
|
+
--rp-color-info : #{$color-info};
|
|
17
|
+
--rp-color-white : #{$color-white};
|
|
18
|
+
--rp-color-black : #{$color-black};
|
|
19
|
+
--rp-color-gray-50 : #{$color-gray-50};
|
|
20
|
+
--rp-color-gray-100 : #{$color-gray-100};
|
|
21
|
+
--rp-color-gray-200 : #{$color-gray-200};
|
|
22
|
+
--rp-color-gray-300 : #{$color-gray-300};
|
|
23
|
+
--rp-color-gray-400 : #{$color-gray-400};
|
|
24
|
+
--rp-color-gray-500 : #{$color-gray-500};
|
|
25
|
+
--rp-color-gray-600 : #{$color-gray-600};
|
|
26
|
+
--rp-color-gray-700 : #{$color-gray-700};
|
|
27
|
+
--rp-color-gray-800 : #{$color-gray-800};
|
|
28
|
+
--rp-color-gray-900 : #{$color-gray-900};
|
|
29
|
+
--rp-color-text : #{$color-text};
|
|
30
|
+
--rp-color-text-secondary : #{$color-text-secondary};
|
|
31
|
+
--rp-color-text-disabled : #{$color-text-disabled};
|
|
32
|
+
--rp-color-text-inverted : var(--rp-color-white);
|
|
33
|
+
--rp-color-background : #{$color-background};
|
|
34
|
+
--rp-color-surface : var(--rp-color-white);
|
|
35
|
+
--rp-color-surface-raised : var(--rp-color-white);
|
|
36
|
+
--rp-color-surface-muted : var(--rp-color-gray-50);
|
|
37
|
+
--rp-color-surface-hover : var(--rp-color-gray-100);
|
|
38
|
+
--rp-color-surface-inverted : var(--rp-color-gray-900);
|
|
39
|
+
--rp-color-overlay : rgba(3, 7, 18, 0.55);
|
|
40
|
+
--rp-color-border : #{$color-border};
|
|
41
|
+
--rp-color-border-hover : #{$color-border-hover};
|
|
42
|
+
--rp-color-focus-ring : color-mix(in srgb, var(--rp-color-primary) 32%, transparent);
|
|
43
|
+
--rp-color-control-bg : var(--rp-color-surface);
|
|
44
|
+
--rp-color-control-readonly-bg : var(--rp-color-surface-muted);
|
|
45
|
+
--rp-color-control-fg : var(--rp-color-text);
|
|
46
|
+
--rp-color-control-placeholder : var(--rp-color-text-secondary);
|
|
47
|
+
--rp-color-control-icon : var(--rp-color-text-secondary);
|
|
48
|
+
--rp-color-control-border : var(--rp-color-border);
|
|
49
|
+
--rp-color-control-border-hover: var(--rp-color-border-hover);
|
|
50
|
+
--rp-color-control-border-focus: var(--rp-color-primary);
|
|
51
|
+
--rp-color-control-track-bg : var(--rp-color-gray-300);
|
|
52
|
+
--rp-color-control-thumb-bg : var(--rp-color-white);
|
|
53
|
+
--rp-color-control-selected-bg : var(--rp-color-primary);
|
|
54
|
+
--rp-color-control-selected-fg : var(--rp-color-on-primary);
|
|
55
|
+
--rp-color-on-primary : #{$color-on-primary};
|
|
56
|
+
--rp-color-on-secondary : #{$color-on-secondary};
|
|
57
|
+
--rp-color-on-success : #{$color-on-success};
|
|
58
|
+
--rp-color-on-warning : #{$color-on-warning};
|
|
59
|
+
--rp-color-on-danger : #{$color-on-danger};
|
|
60
|
+
--rp-color-on-info : #{$color-on-info};
|
|
61
|
+
--rp-color-primary-fg : var(--rp-color-primary);
|
|
62
|
+
--rp-color-secondary-fg : var(--rp-color-secondary);
|
|
63
|
+
--rp-color-success-fg : var(--rp-color-success);
|
|
64
|
+
--rp-color-warning-fg : var(--rp-color-warning);
|
|
65
|
+
--rp-color-danger-fg : var(--rp-color-danger);
|
|
66
|
+
--rp-color-info-fg : var(--rp-color-info);
|
|
67
|
+
|
|
68
|
+
// Font sizes
|
|
69
|
+
--rp-font-size-xs : #{$font-size-xs};
|
|
70
|
+
--rp-font-size-sm : #{$font-size-sm};
|
|
71
|
+
--rp-font-size-base: #{$font-size-base};
|
|
72
|
+
--rp-font-size-lg : #{$font-size-lg};
|
|
73
|
+
--rp-font-size-xl : #{$font-size-xl};
|
|
74
|
+
--rp-font-size-2xl : #{$font-size-2xl};
|
|
75
|
+
--rp-font-size-3xl : #{$font-size-3xl};
|
|
76
|
+
|
|
77
|
+
// Font weights
|
|
78
|
+
--rp-font-weight-normal : #{$font-weight-normal};
|
|
79
|
+
--rp-font-weight-medium : #{$font-weight-medium};
|
|
80
|
+
--rp-font-weight-semibold: #{$font-weight-semibold};
|
|
81
|
+
--rp-font-weight-bold : #{$font-weight-bold};
|
|
82
|
+
|
|
83
|
+
// Line heights
|
|
84
|
+
--rp-line-height-none : #{$line-height-none};
|
|
85
|
+
--rp-line-height-tight : #{$line-height-tight};
|
|
86
|
+
--rp-line-height-normal : #{$line-height-normal};
|
|
87
|
+
--rp-line-height-relaxed: #{$line-height-relaxed};
|
|
88
|
+
--rp-line-height-loose : #{$line-height-loose};
|
|
89
|
+
|
|
90
|
+
// Spacing
|
|
91
|
+
--rp-spacing-0 : #{$spacing-0};
|
|
92
|
+
--rp-spacing-1 : #{$spacing-1};
|
|
93
|
+
--rp-spacing-2 : #{$spacing-2};
|
|
94
|
+
--rp-spacing-3 : #{$spacing-3};
|
|
95
|
+
--rp-spacing-4 : #{$spacing-4};
|
|
96
|
+
--rp-spacing-5 : #{$spacing-5};
|
|
97
|
+
--rp-spacing-6 : #{$spacing-6};
|
|
98
|
+
--rp-spacing-8 : #{$spacing-8};
|
|
99
|
+
--rp-spacing-10: #{$spacing-10};
|
|
100
|
+
--rp-spacing-12: #{$spacing-12};
|
|
101
|
+
|
|
102
|
+
// Border radius
|
|
103
|
+
--rp-radius-none: #{$radius-none};
|
|
104
|
+
--rp-radius-sm : #{$radius-sm};
|
|
105
|
+
--rp-radius-base: #{$radius-base};
|
|
106
|
+
--rp-radius-md : #{$radius-md};
|
|
107
|
+
--rp-radius-lg : #{$radius-lg};
|
|
108
|
+
--rp-radius-xl : #{$radius-xl};
|
|
109
|
+
--rp-radius-2xl : #{$radius-2xl};
|
|
110
|
+
--rp-radius-full: #{$radius-full};
|
|
111
|
+
|
|
112
|
+
// Border widths
|
|
113
|
+
--rp-border-width-thin : #{$border-width-thin};
|
|
114
|
+
--rp-border-width-medium: #{$border-width-medium};
|
|
115
|
+
|
|
116
|
+
// Control sizes
|
|
117
|
+
--rp-size-control-sm: #{$size-control-sm};
|
|
118
|
+
--rp-size-control-md: #{$size-control-md};
|
|
119
|
+
--rp-size-control-lg: #{$size-control-lg};
|
|
120
|
+
|
|
121
|
+
// Component tokens
|
|
122
|
+
--rp-component-menu-min-width : #{$component-menu-min-width};
|
|
123
|
+
--rp-component-menu-max-height: #{$component-menu-max-height};
|
|
124
|
+
|
|
125
|
+
// Z-index
|
|
126
|
+
--rp-z-index-dropdown: #{$z-index-dropdown};
|
|
127
|
+
--rp-z-index-tooltip : #{$z-index-tooltip};
|
|
128
|
+
|
|
129
|
+
// Opacity
|
|
130
|
+
--rp-opacity-disabled: #{$opacity-disabled};
|
|
131
|
+
|
|
132
|
+
// Shadows
|
|
133
|
+
--rp-shadow-sm : #{$shadow-sm};
|
|
134
|
+
--rp-shadow-base: #{$shadow-base};
|
|
135
|
+
--rp-shadow-md : #{$shadow-md};
|
|
136
|
+
--rp-shadow-lg : #{$shadow-lg};
|
|
137
|
+
|
|
138
|
+
// Transitions
|
|
139
|
+
--rp-transition-fast: #{$transition-fast};
|
|
140
|
+
--rp-transition-base: #{$transition-base};
|
|
141
|
+
--rp-transition-slow: #{$transition-slow};
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
html.dark {
|
|
146
|
+
// Colors
|
|
147
|
+
--rp-color-text : var(--rp-color-gray-50);
|
|
148
|
+
--rp-color-text-secondary : var(--rp-color-gray-400);
|
|
149
|
+
--rp-color-text-disabled : var(--rp-color-gray-600);
|
|
150
|
+
--rp-color-text-inverted : var(--rp-color-gray-900);
|
|
151
|
+
--rp-color-background : var(--rp-color-gray-900);
|
|
152
|
+
--rp-color-surface : var(--rp-color-gray-900);
|
|
153
|
+
--rp-color-surface-raised : var(--rp-color-gray-800);
|
|
154
|
+
--rp-color-surface-muted : var(--rp-color-gray-800);
|
|
155
|
+
--rp-color-surface-hover : var(--rp-color-gray-700);
|
|
156
|
+
--rp-color-surface-inverted : var(--rp-color-gray-100);
|
|
157
|
+
--rp-color-overlay : rgba(3, 7, 18, 0.75);
|
|
158
|
+
--rp-color-border : var(--rp-color-gray-700);
|
|
159
|
+
--rp-color-border-hover : var(--rp-color-gray-600);
|
|
160
|
+
--rp-color-focus-ring : color-mix(in srgb, var(--rp-color-primary) 45%, transparent);
|
|
161
|
+
--rp-color-control-bg : var(--rp-color-gray-900);
|
|
162
|
+
--rp-color-control-readonly-bg : var(--rp-color-gray-800);
|
|
163
|
+
--rp-color-control-fg : var(--rp-color-gray-50);
|
|
164
|
+
--rp-color-control-placeholder : var(--rp-color-gray-500);
|
|
165
|
+
--rp-color-control-icon : var(--rp-color-gray-400);
|
|
166
|
+
--rp-color-control-border : var(--rp-color-gray-700);
|
|
167
|
+
--rp-color-control-border-hover: var(--rp-color-gray-600);
|
|
168
|
+
--rp-color-control-border-focus: var(--rp-color-primary);
|
|
169
|
+
--rp-color-control-track-bg : var(--rp-color-gray-700);
|
|
170
|
+
--rp-color-control-thumb-bg : var(--rp-color-gray-50);
|
|
171
|
+
--rp-color-primary-fg : color-mix(in srgb, var(--rp-color-primary) 65%, var(--rp-color-white));
|
|
172
|
+
--rp-color-secondary-fg : color-mix(in srgb, var(--rp-color-secondary) 65%, var(--rp-color-white));
|
|
173
|
+
--rp-color-success-fg : color-mix(in srgb, var(--rp-color-success) 65%, var(--rp-color-white));
|
|
174
|
+
--rp-color-warning-fg : color-mix(in srgb, var(--rp-color-warning) 65%, var(--rp-color-white));
|
|
175
|
+
--rp-color-danger-fg : color-mix(in srgb, var(--rp-color-danger) 65%, var(--rp-color-white));
|
|
176
|
+
--rp-color-info-fg : color-mix(in srgb, var(--rp-color-info) 65%, var(--rp-color-white));
|
|
177
|
+
|
|
178
|
+
// Shadows
|
|
179
|
+
--rp-shadow-sm : 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
180
|
+
--rp-shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
|
|
181
|
+
--rp-shadow-md : 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
|
|
182
|
+
--rp-shadow-lg : 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
|
|
183
|
+
|
|
184
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// This file is generated by Style Dictionary.
|
|
2
|
+
// Do not edit directly; update tokens/**/*.tokens.json instead.
|
|
3
|
+
|
|
4
|
+
// Font family
|
|
5
|
+
$font-family-base: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !default;
|
|
6
|
+
|
|
7
|
+
// Colors
|
|
8
|
+
$color-primary : #2563eb !default;
|
|
9
|
+
$color-secondary : #4f46e5 !default;
|
|
10
|
+
$color-success : #15803d !default;
|
|
11
|
+
$color-warning : #b45309 !default;
|
|
12
|
+
$color-danger : #dc2626 !default;
|
|
13
|
+
$color-info : #0e7490 !default;
|
|
14
|
+
$color-white : #ffffff !default;
|
|
15
|
+
$color-black : #09090b !default;
|
|
16
|
+
$color-gray-50 : #fafafa !default;
|
|
17
|
+
$color-gray-100 : #f4f4f5 !default;
|
|
18
|
+
$color-gray-200 : #e4e4e7 !default;
|
|
19
|
+
$color-gray-300 : #d4d4d8 !default;
|
|
20
|
+
$color-gray-400 : #a1a1aa !default;
|
|
21
|
+
$color-gray-500 : #71717a !default;
|
|
22
|
+
$color-gray-600 : #52525b !default;
|
|
23
|
+
$color-gray-700 : #3f3f46 !default;
|
|
24
|
+
$color-gray-800 : #27272a !default;
|
|
25
|
+
$color-gray-900 : #18181b !default;
|
|
26
|
+
$color-text : $color-gray-900 !default;
|
|
27
|
+
$color-text-secondary: $color-gray-600 !default;
|
|
28
|
+
$color-text-disabled : $color-gray-500 !default;
|
|
29
|
+
$color-background : $color-white !default;
|
|
30
|
+
$color-border : $color-gray-200 !default;
|
|
31
|
+
$color-border-hover : $color-gray-400 !default;
|
|
32
|
+
$color-on-primary : $color-white !default;
|
|
33
|
+
$color-on-secondary : $color-white !default;
|
|
34
|
+
$color-on-success : $color-white !default;
|
|
35
|
+
$color-on-warning : $color-white !default;
|
|
36
|
+
$color-on-danger : $color-white !default;
|
|
37
|
+
$color-on-info : $color-white !default;
|
|
38
|
+
|
|
39
|
+
// Font sizes
|
|
40
|
+
$font-size-xs : 0.75rem !default;
|
|
41
|
+
$font-size-sm : 0.875rem !default;
|
|
42
|
+
$font-size-base: 1rem !default;
|
|
43
|
+
$font-size-lg : 1.125rem !default;
|
|
44
|
+
$font-size-xl : 1.25rem !default;
|
|
45
|
+
$font-size-2xl : 1.5rem !default;
|
|
46
|
+
$font-size-3xl : 1.875rem !default;
|
|
47
|
+
|
|
48
|
+
// Font weights
|
|
49
|
+
$font-weight-normal : 400 !default;
|
|
50
|
+
$font-weight-medium : 500 !default;
|
|
51
|
+
$font-weight-semibold: 600 !default;
|
|
52
|
+
$font-weight-bold : 700 !default;
|
|
53
|
+
|
|
54
|
+
// Line heights
|
|
55
|
+
$line-height-none : 1 !default;
|
|
56
|
+
$line-height-tight : 1.25 !default;
|
|
57
|
+
$line-height-normal : 1.4 !default;
|
|
58
|
+
$line-height-relaxed: 1.5 !default;
|
|
59
|
+
$line-height-loose : 1.6 !default;
|
|
60
|
+
|
|
61
|
+
// Spacing
|
|
62
|
+
$spacing-0 : 0 !default;
|
|
63
|
+
$spacing-1 : 0.25rem !default;
|
|
64
|
+
$spacing-2 : 0.5rem !default;
|
|
65
|
+
$spacing-3 : 0.75rem !default;
|
|
66
|
+
$spacing-4 : 1rem !default;
|
|
67
|
+
$spacing-5 : 1.25rem !default;
|
|
68
|
+
$spacing-6 : 1.5rem !default;
|
|
69
|
+
$spacing-8 : 2rem !default;
|
|
70
|
+
$spacing-10: 2.5rem !default;
|
|
71
|
+
$spacing-12: 3rem !default;
|
|
72
|
+
|
|
73
|
+
// Border radius
|
|
74
|
+
$radius-none: 0 !default;
|
|
75
|
+
$radius-sm : 0.125rem !default;
|
|
76
|
+
$radius-base: 0.25rem !default;
|
|
77
|
+
$radius-md : 0.375rem !default;
|
|
78
|
+
$radius-lg : 0.5rem !default;
|
|
79
|
+
$radius-xl : 0.75rem !default;
|
|
80
|
+
$radius-2xl : 1rem !default;
|
|
81
|
+
$radius-full: 9999px !default;
|
|
82
|
+
|
|
83
|
+
// Border widths
|
|
84
|
+
$border-width-thin : 1px !default;
|
|
85
|
+
$border-width-medium: 2px !default;
|
|
86
|
+
|
|
87
|
+
// Control sizes
|
|
88
|
+
$size-control-sm: 32px !default;
|
|
89
|
+
$size-control-md: 40px !default;
|
|
90
|
+
$size-control-lg: 48px !default;
|
|
91
|
+
|
|
92
|
+
// Component tokens
|
|
93
|
+
$component-menu-min-width : 180px !default;
|
|
94
|
+
$component-menu-max-height: 240px !default;
|
|
95
|
+
|
|
96
|
+
// Z-index
|
|
97
|
+
$z-index-dropdown: 100 !default;
|
|
98
|
+
$z-index-tooltip : 1000 !default;
|
|
99
|
+
|
|
100
|
+
// Opacity
|
|
101
|
+
$opacity-disabled: 0.5 !default;
|
|
102
|
+
|
|
103
|
+
// Shadows
|
|
104
|
+
$shadow-sm : 0 1px 2px 0 rgba(0, 0, 0, 0.05) !default;
|
|
105
|
+
$shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !default;
|
|
106
|
+
$shadow-md : 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !default;
|
|
107
|
+
$shadow-lg : 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !default;
|
|
108
|
+
|
|
109
|
+
// Transitions
|
|
110
|
+
$transition-fast: 150ms ease !default;
|
|
111
|
+
$transition-base: 200ms ease !default;
|
|
112
|
+
$transition-slow: 300ms ease !default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use './tokens';
|