@oscarpalmer/oui 0.18.0 → 0.20.0
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/dist/css/a11y.css +0 -1
- package/dist/css/badge.css +10 -10
- package/dist/css/button.css +9 -9
- package/dist/css/color.css +99 -99
- package/dist/css/content.css +1 -1
- package/dist/css/flex.css +39 -39
- package/dist/css/form.css +29 -57
- package/dist/css/message.css +6 -6
- package/dist/css/popover.css +22 -0
- package/dist/css/reset.css +11 -10
- package/dist/css/table.css +5 -5
- package/dist/css/tooltip.css +61 -1
- package/dist/js/attributable.d.mts +4 -0
- package/dist/js/{attributable.js → attributable.mjs} +8 -1
- package/dist/js/floatable.d.mts +26 -0
- package/dist/js/{floatable.js → floatable.mjs} +73 -50
- package/dist/js/focus-trap/embedded.d.mts +26 -0
- package/dist/js/focus-trap/{embedded.js → embedded.mjs} +10 -8
- package/dist/js/focus-trap/standalone.d.mts +1 -0
- package/dist/js/focus-trap/{standalone.js → standalone.mjs} +5 -2
- package/dist/js/index.d.mts +4 -0
- package/dist/js/index.mjs +5 -0
- package/dist/js/popover.d.mts +20 -0
- package/dist/js/{popover.js → popover.mjs} +11 -9
- package/dist/js/splitter.d.mts +25 -0
- package/dist/js/{splitter.js → splitter.mjs} +60 -58
- package/dist/js/tooltip.d.mts +4 -0
- package/dist/js/{tooltip.js → tooltip.mjs} +21 -19
- package/package.json +65 -70
- package/src/css/a11y.scss +1 -1
- package/src/css/badge.scss +23 -19
- package/src/css/button.scss +9 -9
- package/src/css/color.scss +99 -99
- package/src/css/content.scss +6 -8
- package/src/css/flex.scss +21 -20
- package/src/css/form.scss +37 -60
- package/src/css/message.scss +8 -12
- package/src/css/mixins.scss +41 -13
- package/src/css/popover.scss +7 -2
- package/src/css/reset.scss +18 -18
- package/src/css/splitter.scss +15 -13
- package/src/css/table.scss +12 -12
- package/src/css/tooltip.scss +79 -4
- package/src/js/attributable.ts +14 -11
- package/src/js/floatable.ts +134 -74
- package/src/js/focus-trap/embedded.ts +7 -31
- package/src/js/popover.ts +3 -3
- package/src/js/splitter.ts +10 -43
- package/src/js/tooltip.ts +8 -20
- package/dist/css/value.css +0 -1
- package/dist/js/attributable.full.js +0 -48
- package/dist/js/floatable.full.js +0 -413
- package/dist/js/focus-trap/embedded.full.js +0 -351
- package/dist/js/focus-trap/standalone.full.js +0 -402
- package/dist/js/index.js +0 -5
- package/dist/js/oui.full.js +0 -1596
- package/dist/js/popover.full.js +0 -822
- package/dist/js/splitter.full.js +0 -605
- package/dist/js/tooltip.full.js +0 -679
- package/types/attributable.d.ts +0 -1
- package/types/floatable.d.ts +0 -24
- package/types/focus-trap/embedded.d.ts +0 -24
- package/types/focus-trap/standalone.d.ts +0 -1
- package/types/index.d.ts +0 -4
- package/types/popover.d.ts +0 -17
- package/types/splitter.d.ts +0 -23
- package/types/tooltip.d.ts +0 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { attributable } from "./attributable.
|
|
2
|
-
import { Floatable } from "./floatable.
|
|
3
|
-
import { isNullableOrWhitespace } from "@oscarpalmer/atoms/is";
|
|
1
|
+
import { attributable } from "./attributable.mjs";
|
|
2
|
+
import { Floatable } from "./floatable.mjs";
|
|
4
3
|
import { on } from "@oscarpalmer/toretto/event";
|
|
5
4
|
import { findAncestor } from "@oscarpalmer/toretto/find";
|
|
5
|
+
import { isNullableOrWhitespace } from "@oscarpalmer/atoms/is";
|
|
6
|
+
//#region src/js/tooltip.ts
|
|
6
7
|
var Tooltip = class {
|
|
7
8
|
attributes;
|
|
8
9
|
floatable;
|
|
@@ -42,11 +43,11 @@ function closeTooltips(next) {
|
|
|
42
43
|
for (const active of tooltips) {
|
|
43
44
|
if (active === next) continue;
|
|
44
45
|
if (active.timer != null) clearTimeout(active.timer);
|
|
45
|
-
active.floatable
|
|
46
|
+
active.floatable?.options.content.removeAttribute("oui-tooltip-content-active");
|
|
46
47
|
requestAnimationFrame(() => {
|
|
47
48
|
active.timer = setTimeout(() => {
|
|
48
49
|
TOOLTIPS_ACTIVE.delete(active);
|
|
49
|
-
active.floatable
|
|
50
|
+
active.floatable?.toggle(false);
|
|
50
51
|
}, delay);
|
|
51
52
|
});
|
|
52
53
|
}
|
|
@@ -114,7 +115,7 @@ function onActivate(event) {
|
|
|
114
115
|
onToggle(event, true);
|
|
115
116
|
}
|
|
116
117
|
function onClick(event) {
|
|
117
|
-
if (findAncestor(event
|
|
118
|
+
if (findAncestor(event, SELECTOR_CONTENT) != null) event.stopPropagation();
|
|
118
119
|
}
|
|
119
120
|
function onDeactivate(event) {
|
|
120
121
|
onToggle(event, false);
|
|
@@ -123,7 +124,7 @@ function onToggle(event, activate) {
|
|
|
123
124
|
if (toggle != null) cancelAnimationFrame(toggle);
|
|
124
125
|
toggle = requestAnimationFrame(() => {
|
|
125
126
|
toggle = void 0;
|
|
126
|
-
const element = findAncestor(event
|
|
127
|
+
const element = findAncestor(event, SELECTOR_FULL);
|
|
127
128
|
const tooltip = TOOLTIPS_ALL.get(element);
|
|
128
129
|
if (TOOLTIPS_ACTIVE.size > 0) closeTooltips(tooltip);
|
|
129
130
|
if (tooltip == null || tooltip.floatable.options.content.hasAttribute("oui-tooltip-content-active") === activate) return;
|
|
@@ -153,22 +154,23 @@ function reset(anchor, attributes) {
|
|
|
153
154
|
function setDelay(value) {
|
|
154
155
|
delay = typeof value === "number" && value >= 0 ? value : delay;
|
|
155
156
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
157
|
+
const SELECTOR = "oui-tooltip";
|
|
158
|
+
const ATTRIBUTE_CLASS = `${SELECTOR}-class`;
|
|
159
|
+
const ATTRIBUTE_CONTENT = `${SELECTOR}-content`;
|
|
160
|
+
const ATTRIBUTE_POSITION = `${SELECTOR}-position`;
|
|
161
|
+
const SELECTOR_CONTENT = `[${ATTRIBUTE_CONTENT}]`;
|
|
162
|
+
const SELECTOR_FULL = `[${SELECTOR}], [${ATTRIBUTE_CONTENT}]`;
|
|
163
|
+
const EXPRESSION_WHITESPACE = /\s+/;
|
|
164
|
+
const TOOLTIPS_ACTIVE = /* @__PURE__ */ new Set();
|
|
165
|
+
const TOOLTIPS_ALL = /* @__PURE__ */ new WeakMap();
|
|
166
|
+
let delay = 500;
|
|
167
|
+
let index = 0;
|
|
168
|
+
let toggle;
|
|
168
169
|
attributable(SELECTOR, addTooltip, removeTooltip);
|
|
169
170
|
on(document, "click", onClick, { capture: true });
|
|
170
171
|
on(document, "focusin", onActivate);
|
|
171
172
|
on(document, "focusout", onDeactivate);
|
|
172
173
|
on(document, "mousemove", onActivate);
|
|
173
174
|
on(document, "touchstart", onActivate);
|
|
175
|
+
//#endregion
|
|
174
176
|
export { setDelay };
|
package/package.json
CHANGED
|
@@ -1,90 +1,85 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "@oscarpalmer/oui",
|
|
3
|
+
"version": "0.20.0",
|
|
4
|
+
"description": "Styles, components, and utilities for building websites and applications.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"css",
|
|
7
|
+
"design",
|
|
8
|
+
"framework",
|
|
9
|
+
"library",
|
|
10
|
+
"scss",
|
|
11
|
+
"style",
|
|
12
|
+
"stylesheet",
|
|
13
|
+
"utility"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
2
16
|
"author": {
|
|
3
17
|
"name": "Oscar Palmér",
|
|
4
18
|
"url": "https://oscarpalmer.se"
|
|
5
19
|
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
},
|
|
10
|
-
"description": "Styles, components, and utilities for building websites and applications.",
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@biomejs/biome": "^2.2",
|
|
13
|
-
"@rollup/plugin-node-resolve": "^16",
|
|
14
|
-
"@rollup/plugin-typescript": "^12.1",
|
|
15
|
-
"@types/node": "^24.7",
|
|
16
|
-
"@vitest/coverage-istanbul": "^3.2",
|
|
17
|
-
"autoprefixer": "^10.4",
|
|
18
|
-
"jsdom": "^27",
|
|
19
|
-
"postcss-cli": "^11",
|
|
20
|
-
"postcss-input-range": "^6",
|
|
21
|
-
"postcss-scss": "^4",
|
|
22
|
-
"rollup": "^4.52",
|
|
23
|
-
"sass": "^1.93",
|
|
24
|
-
"stylelint": "^16.25",
|
|
25
|
-
"tslib": "^2.8",
|
|
26
|
-
"typescript": "^5.9",
|
|
27
|
-
"vite": "npm:rolldown-vite@latest",
|
|
28
|
-
"vitest": "^3.2"
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/oscarpalmer/oui.git"
|
|
29
23
|
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"src"
|
|
27
|
+
],
|
|
28
|
+
"type": "module",
|
|
29
|
+
"module": "dist/js/index.mjs",
|
|
30
|
+
"types": "dist/js/index.d.mts",
|
|
30
31
|
"exports": {
|
|
31
32
|
".": {
|
|
32
|
-
"types": "./
|
|
33
|
-
"default": "./dist/js/index.
|
|
33
|
+
"types": "./dist/js/index.d.mts",
|
|
34
|
+
"default": "./dist/js/index.mjs"
|
|
34
35
|
},
|
|
35
36
|
"./focus-trap": {
|
|
36
|
-
"types": "./
|
|
37
|
-
"default": "./dist/js/focus-trap/standalone.
|
|
37
|
+
"types": "./dist/js/focus-trap/standalone.d.mts",
|
|
38
|
+
"default": "./dist/js/focus-trap/standalone.mjs"
|
|
38
39
|
},
|
|
39
40
|
"./popover": {
|
|
40
|
-
"types": "./
|
|
41
|
-
"default": "./dist/js/popover.
|
|
41
|
+
"types": "./dist/js/popover.d.mts",
|
|
42
|
+
"default": "./dist/js/popover.mjs"
|
|
42
43
|
},
|
|
43
44
|
"./splitter": {
|
|
44
|
-
"types": "./
|
|
45
|
-
"default": "./dist/js/splitter.
|
|
45
|
+
"types": "./dist/js/splitter.d.mts",
|
|
46
|
+
"default": "./dist/js/splitter.mjs"
|
|
46
47
|
},
|
|
47
48
|
"./tooltip": {
|
|
48
|
-
"types": "./
|
|
49
|
-
"default": "./dist/js/tooltip.
|
|
49
|
+
"types": "./dist/js/tooltip.d.mts",
|
|
50
|
+
"default": "./dist/js/tooltip.mjs"
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
|
-
"files": [
|
|
53
|
-
"dist",
|
|
54
|
-
"src",
|
|
55
|
-
"types"
|
|
56
|
-
],
|
|
57
|
-
"keywords": [
|
|
58
|
-
"css",
|
|
59
|
-
"scss",
|
|
60
|
-
"design",
|
|
61
|
-
"framework",
|
|
62
|
-
"library",
|
|
63
|
-
"style",
|
|
64
|
-
"stylesheet",
|
|
65
|
-
"utility"
|
|
66
|
-
],
|
|
67
|
-
"license": "MIT",
|
|
68
|
-
"module": "dist/js/index.js",
|
|
69
|
-
"name": "@oscarpalmer/oui",
|
|
70
|
-
"repository": {
|
|
71
|
-
"type": "git",
|
|
72
|
-
"url": "git+https://github.com/oscarpalmer/oui.git"
|
|
73
|
-
},
|
|
74
53
|
"scripts": {
|
|
75
|
-
"build": "
|
|
76
|
-
"build:css": "
|
|
77
|
-
"build:postcss": "
|
|
78
|
-
"build:js": "
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"watch:
|
|
84
|
-
"watch:
|
|
85
|
-
"watch:js": "npx vite build --watch"
|
|
54
|
+
"build": "vp run build:js && vp run build:css",
|
|
55
|
+
"build:css": "vp run build:postcss && vpx sass ./postcss:./dist/css --no-source-map",
|
|
56
|
+
"build:postcss": "vpx postcss ./src/css/*.scss -d ./postcss -u autoprefixer postcss-input-range --parser postcss-scss",
|
|
57
|
+
"build:js": "vpx vp pack",
|
|
58
|
+
"test": "vpx vitest --coverage",
|
|
59
|
+
"tsdown:build": "vpx tsdown -c ./tsdown.config.ts",
|
|
60
|
+
"tsdown:watch": "vpx tsdown -c ./tsdown.config.ts --watch",
|
|
61
|
+
"watch:css": "vpx sass ./postcss:./dist/css --no-source-map --watch",
|
|
62
|
+
"watch:postcss": "vpx postcss ./src/css/*.scss -d ./postcss -u autoprefixer postcss-input-range --parser postcss-scss --watch",
|
|
63
|
+
"watch:js": "vpx vite build --watch"
|
|
86
64
|
},
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@oscarpalmer/atoms": "^0.170",
|
|
67
|
+
"@oscarpalmer/toretto": "^0.41"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@vitest/coverage-istanbul": "^4.1",
|
|
71
|
+
"autoprefixer": "^10.4",
|
|
72
|
+
"jsdom": "^29",
|
|
73
|
+
"postcss-cli": "^11",
|
|
74
|
+
"postcss-input-range": "^6",
|
|
75
|
+
"postcss-scss": "^4",
|
|
76
|
+
"sass": "^1.98",
|
|
77
|
+
"stylelint": "^17.6",
|
|
78
|
+
"stylelint-config-standard-scss": "^17",
|
|
79
|
+
"typescript": "^5.9",
|
|
80
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
81
|
+
"vite-plus": "latest",
|
|
82
|
+
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
|
|
83
|
+
},
|
|
84
|
+
"packageManager": "npm@11.12.1"
|
|
85
|
+
}
|
package/src/css/a11y.scss
CHANGED
package/src/css/badge.scss
CHANGED
|
@@ -14,72 +14,76 @@
|
|
|
14
14
|
|
|
15
15
|
display: inline-flex;
|
|
16
16
|
flex-flow: row nowrap;
|
|
17
|
-
gap: .5em;
|
|
18
|
-
background-color: color-mix(
|
|
17
|
+
gap: 0.5em;
|
|
18
|
+
background-color: color-mix(
|
|
19
|
+
in oklab,
|
|
20
|
+
var(--oui-background, var(--oui-gray-0)),
|
|
21
|
+
transparent 25%
|
|
22
|
+
);
|
|
19
23
|
color: var(--oui-foreground, var(--oui-gray-8));
|
|
20
24
|
line-height: 1.25;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
:where(&-pill) {
|
|
24
28
|
border-radius: 3em;
|
|
25
|
-
padding: .5em 1em;
|
|
29
|
+
padding: 0.5em 1em;
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
:where(&-tag) {
|
|
29
|
-
border-radius: .25em;
|
|
30
|
-
padding: .5em .75em;
|
|
33
|
+
border-radius: 0.25em;
|
|
34
|
+
padding: 0.5em 0.75em;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
|
-
:where(&-pill
|
|
34
|
-
font-size: .875em;
|
|
37
|
+
:where(&-pill--small, &-tag--small) {
|
|
38
|
+
font-size: 0.875em;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
|
-
:where(&-pill
|
|
41
|
+
:where(&-pill--tiny, &-tag--tiny) {
|
|
38
42
|
color: color-mix(in oklab, var(--oui-foreground, var(--oui-gray-8)), transparent 12.5%);
|
|
39
|
-
font-size: .75em;
|
|
43
|
+
font-size: 0.75em;
|
|
40
44
|
}
|
|
41
45
|
|
|
42
|
-
:where(&-pill
|
|
43
|
-
padding: .25em .75em;
|
|
46
|
+
:where(&-pill--tiny) {
|
|
47
|
+
padding: 0.25em 0.75em;
|
|
44
48
|
}
|
|
45
49
|
|
|
46
|
-
:where(&-tag
|
|
47
|
-
padding: .25em .5em;
|
|
50
|
+
:where(&-tag--tiny) {
|
|
51
|
+
padding: 0.25em 0.5em;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
// Colors
|
|
51
55
|
|
|
52
|
-
:where(&-pill
|
|
56
|
+
:where(&-pill--blue, &-tag--blue) {
|
|
53
57
|
--oui-background: var(--oui-blue-0);
|
|
54
58
|
--oui-foreground: var(--oui-blue-8);
|
|
55
59
|
--oui-shadow: var(--oui-blue-6);
|
|
56
60
|
}
|
|
57
61
|
|
|
58
|
-
:where(&-pill
|
|
62
|
+
:where(&-pill--green, &-tag--green) {
|
|
59
63
|
--oui-background: var(--oui-green-0);
|
|
60
64
|
--oui-foreground: var(--oui-green-8);
|
|
61
65
|
--oui-shadow: var(--oui-green-6);
|
|
62
66
|
}
|
|
63
67
|
|
|
64
|
-
:where(&-pill
|
|
68
|
+
:where(&-pill--orange, &-tag--orange) {
|
|
65
69
|
--oui-background: var(--oui-orange-0);
|
|
66
70
|
--oui-foreground: var(--oui-orange-8);
|
|
67
71
|
--oui-shadow: var(--oui-orange-6);
|
|
68
72
|
}
|
|
69
73
|
|
|
70
|
-
:where(&-pill
|
|
74
|
+
:where(&-pill--purple, &-tag--purple) {
|
|
71
75
|
--oui-background: var(--oui-purple-0);
|
|
72
76
|
--oui-foreground: var(--oui-purple-8);
|
|
73
77
|
--oui-shadow: var(--oui-purple-6);
|
|
74
78
|
}
|
|
75
79
|
|
|
76
|
-
:where(&-pill
|
|
80
|
+
:where(&-pill--red, &-tag--red) {
|
|
77
81
|
--oui-background: var(--oui-red-0);
|
|
78
82
|
--oui-foreground: var(--oui-red-8);
|
|
79
83
|
--oui-shadow: var(--oui-red-6);
|
|
80
84
|
}
|
|
81
85
|
|
|
82
|
-
:where(&-pill
|
|
86
|
+
:where(&-pill--yellow, &-tag--yellow) {
|
|
83
87
|
--oui-background: var(--oui-yellow-0);
|
|
84
88
|
--oui-foreground: var(--oui-yellow-8);
|
|
85
89
|
--oui-shadow: var(--oui-yellow-6);
|
package/src/css/button.scss
CHANGED
|
@@ -7,54 +7,54 @@
|
|
|
7
7
|
@include mixins.button;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
:where(
|
|
10
|
+
:where(&--blue) {
|
|
11
11
|
--oui-background-value: var(--oui-blue-2);
|
|
12
12
|
--oui-foreground-value: var(--oui-blue-8);
|
|
13
13
|
--oui-outline-value: var(--oui-blue-6);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
:where(
|
|
16
|
+
:where(&--green) {
|
|
17
17
|
--oui-background-value: var(--oui-green-2);
|
|
18
18
|
--oui-foreground-value: var(--oui-green-8);
|
|
19
19
|
--oui-outline-value: var(--oui-green-6);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
:where(
|
|
22
|
+
:where(&--orange) {
|
|
23
23
|
--oui-background-value: var(--oui-orange-2);
|
|
24
24
|
--oui-foreground-value: var(--oui-orange-8);
|
|
25
25
|
--oui-outline-value: var(--oui-orange-6);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
:where(
|
|
28
|
+
:where(&--purple) {
|
|
29
29
|
--oui-background-value: var(--oui-purple-2);
|
|
30
30
|
--oui-foreground-value: var(--oui-purple-8);
|
|
31
31
|
--oui-outline-value: var(--oui-purple-6);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
:where(
|
|
34
|
+
:where(&--red) {
|
|
35
35
|
--oui-background-value: var(--oui-red-2);
|
|
36
36
|
--oui-foreground-value: var(--oui-red-8);
|
|
37
37
|
--oui-outline-value: var(--oui-red-6);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
:where(
|
|
40
|
+
:where(&--yellow) {
|
|
41
41
|
--oui-background-value: var(--oui-yellow-2);
|
|
42
42
|
--oui-foreground-value: var(--oui-yellow-8);
|
|
43
43
|
--oui-outline-value: var(--oui-yellow-6);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
:where(
|
|
46
|
+
:where(&--rounded) {
|
|
47
47
|
padding: 0.5em 1em;
|
|
48
48
|
flex-wrap: nowrap;
|
|
49
49
|
border-radius: 5em;
|
|
50
50
|
white-space: nowrap;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
:where(
|
|
53
|
+
:where(&--small) {
|
|
54
54
|
font-size: 0.875em;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
:where(
|
|
57
|
+
:where(&--tiny) {
|
|
58
58
|
--oui-foreground-percentage: 12.5%;
|
|
59
59
|
|
|
60
60
|
font-size: 0.75em;
|
package/src/css/color.scss
CHANGED
|
@@ -5,111 +5,111 @@
|
|
|
5
5
|
:root {
|
|
6
6
|
--oui-absolute: light-dark(white, black);
|
|
7
7
|
|
|
8
|
-
--oui-blue-0: light-dark(oklch(
|
|
9
|
-
--oui-blue-1: light-dark(oklch(
|
|
10
|
-
--oui-blue-2: light-dark(oklch(
|
|
11
|
-
--oui-blue-3: light-dark(oklch(
|
|
12
|
-
--oui-blue-4: light-dark(oklch(
|
|
13
|
-
--oui-blue-5: light-dark(oklch(
|
|
14
|
-
--oui-blue-6: light-dark(oklch(
|
|
15
|
-
--oui-blue-7: light-dark(oklch(
|
|
16
|
-
--oui-blue-8: light-dark(oklch(
|
|
17
|
-
--oui-blue-9: light-dark(oklch(
|
|
18
|
-
--oui-blue-10: light-dark(oklch(
|
|
8
|
+
--oui-blue-0: light-dark(oklch(99% 0.01 260deg), oklch(20% 0.08 250deg));
|
|
9
|
+
--oui-blue-1: light-dark(oklch(98% 0.02 259deg), oklch(25% 0.09 251deg));
|
|
10
|
+
--oui-blue-2: light-dark(oklch(95% 0.03 258deg), oklch(32% 0.1 252deg));
|
|
11
|
+
--oui-blue-3: light-dark(oklch(90% 0.04 257deg), oklch(40% 0.09 253deg));
|
|
12
|
+
--oui-blue-4: light-dark(oklch(80% 0.06 256deg), oklch(50% 0.08 254deg));
|
|
13
|
+
--oui-blue-5: light-dark(oklch(70% 0.08 255deg), oklch(60% 0.07 255deg));
|
|
14
|
+
--oui-blue-6: light-dark(oklch(60% 0.1 254deg), oklch(70% 0.06 256deg));
|
|
15
|
+
--oui-blue-7: light-dark(oklch(50% 0.12 253deg), oklch(80% 0.05 257deg));
|
|
16
|
+
--oui-blue-8: light-dark(oklch(42% 0.11 252deg), oklch(85% 0.04 258deg));
|
|
17
|
+
--oui-blue-9: light-dark(oklch(35% 0.1 251deg), oklch(90% 0.03 259deg));
|
|
18
|
+
--oui-blue-10: light-dark(oklch(30% 0.09 250deg), oklch(95% 0.02 260deg));
|
|
19
19
|
|
|
20
|
-
--oui-green-0: light-dark(oklch(
|
|
21
|
-
--oui-green-1: light-dark(oklch(
|
|
22
|
-
--oui-green-2: light-dark(oklch(
|
|
23
|
-
--oui-green-3: light-dark(oklch(
|
|
24
|
-
--oui-green-4: light-dark(oklch(
|
|
25
|
-
--oui-green-5: light-dark(oklch(
|
|
26
|
-
--oui-green-6: light-dark(oklch(
|
|
27
|
-
--oui-green-7: light-dark(oklch(
|
|
28
|
-
--oui-green-8: light-dark(oklch(
|
|
29
|
-
--oui-green-9: light-dark(oklch(
|
|
30
|
-
--oui-green-10: light-dark(oklch(
|
|
20
|
+
--oui-green-0: light-dark(oklch(99% 0.01 150deg), oklch(20% 0.08 140deg));
|
|
21
|
+
--oui-green-1: light-dark(oklch(98% 0.02 149deg), oklch(25% 0.09 141deg));
|
|
22
|
+
--oui-green-2: light-dark(oklch(95% 0.03 148deg), oklch(32% 0.1 142deg));
|
|
23
|
+
--oui-green-3: light-dark(oklch(90% 0.04 147deg), oklch(40% 0.09 143deg));
|
|
24
|
+
--oui-green-4: light-dark(oklch(80% 0.06 146deg), oklch(50% 0.08 144deg));
|
|
25
|
+
--oui-green-5: light-dark(oklch(70% 0.08 145deg), oklch(60% 0.07 145deg));
|
|
26
|
+
--oui-green-6: light-dark(oklch(60% 0.1 144deg), oklch(70% 0.06 146deg));
|
|
27
|
+
--oui-green-7: light-dark(oklch(50% 0.12 143deg), oklch(80% 0.05 147deg));
|
|
28
|
+
--oui-green-8: light-dark(oklch(42% 0.11 142deg), oklch(85% 0.04 148deg));
|
|
29
|
+
--oui-green-9: light-dark(oklch(35% 0.1 141deg), oklch(90% 0.03 149deg));
|
|
30
|
+
--oui-green-10: light-dark(oklch(30% 0.09 140deg), oklch(95% 0.02 150deg));
|
|
31
31
|
|
|
32
|
-
--oui-orange-0: light-dark(oklch(
|
|
33
|
-
--oui-orange-1: light-dark(oklch(
|
|
34
|
-
--oui-orange-2: light-dark(oklch(
|
|
35
|
-
--oui-orange-3: light-dark(oklch(
|
|
36
|
-
--oui-orange-4: light-dark(oklch(
|
|
37
|
-
--oui-orange-5: light-dark(oklch(
|
|
38
|
-
--oui-orange-6: light-dark(oklch(
|
|
39
|
-
--oui-orange-7: light-dark(oklch(
|
|
40
|
-
--oui-orange-8: light-dark(oklch(
|
|
41
|
-
--oui-orange-9: light-dark(oklch(
|
|
42
|
-
--oui-orange-10: light-dark(oklch(
|
|
32
|
+
--oui-orange-0: light-dark(oklch(99% 0.02 60deg), oklch(20% 0.08 50deg));
|
|
33
|
+
--oui-orange-1: light-dark(oklch(98.5% 0.035 59deg), oklch(25% 0.09 51deg));
|
|
34
|
+
--oui-orange-2: light-dark(oklch(97% 0.05 58deg), oklch(32% 0.1 52deg));
|
|
35
|
+
--oui-orange-3: light-dark(oklch(93% 0.07 57deg), oklch(40% 0.09 53deg));
|
|
36
|
+
--oui-orange-4: light-dark(oklch(87% 0.1 56deg), oklch(50% 0.08 54deg));
|
|
37
|
+
--oui-orange-5: light-dark(oklch(76% 0.11 55deg), oklch(60% 0.07 55deg));
|
|
38
|
+
--oui-orange-6: light-dark(oklch(65% 0.12 54deg), oklch(70% 0.06 56deg));
|
|
39
|
+
--oui-orange-7: light-dark(oklch(55% 0.14 53deg), oklch(80% 0.05 57deg));
|
|
40
|
+
--oui-orange-8: light-dark(oklch(45% 0.12 52deg), oklch(85% 0.04 58deg));
|
|
41
|
+
--oui-orange-9: light-dark(oklch(37.5% 0.11 51deg), oklch(90% 0.03 59deg));
|
|
42
|
+
--oui-orange-10: light-dark(oklch(30% 0.09 50deg), oklch(95% 0.02 60deg));
|
|
43
43
|
|
|
44
|
-
--oui-purple-0: light-dark(oklch(
|
|
45
|
-
--oui-purple-1: light-dark(oklch(
|
|
46
|
-
--oui-purple-2: light-dark(oklch(
|
|
47
|
-
--oui-purple-3: light-dark(oklch(
|
|
48
|
-
--oui-purple-4: light-dark(oklch(
|
|
49
|
-
--oui-purple-5: light-dark(oklch(
|
|
50
|
-
--oui-purple-6: light-dark(oklch(
|
|
51
|
-
--oui-purple-7: light-dark(oklch(
|
|
52
|
-
--oui-purple-8: light-dark(oklch(
|
|
53
|
-
--oui-purple-9: light-dark(oklch(
|
|
54
|
-
--oui-purple-10: light-dark(oklch(
|
|
44
|
+
--oui-purple-0: light-dark(oklch(99% 0.02 300deg), oklch(20% 0.08 290deg));
|
|
45
|
+
--oui-purple-1: light-dark(oklch(98% 0.035 299deg), oklch(25% 0.09 291deg));
|
|
46
|
+
--oui-purple-2: light-dark(oklch(95% 0.05 298deg), oklch(32% 0.1 292deg));
|
|
47
|
+
--oui-purple-3: light-dark(oklch(90% 0.07 297deg), oklch(40% 0.09 293deg));
|
|
48
|
+
--oui-purple-4: light-dark(oklch(80% 0.1 296deg), oklch(50% 0.08 294deg));
|
|
49
|
+
--oui-purple-5: light-dark(oklch(70% 0.11 295deg), oklch(60% 0.07 295deg));
|
|
50
|
+
--oui-purple-6: light-dark(oklch(60% 0.12 294deg), oklch(70% 0.06 296deg));
|
|
51
|
+
--oui-purple-7: light-dark(oklch(50% 0.14 293deg), oklch(80% 0.05 297deg));
|
|
52
|
+
--oui-purple-8: light-dark(oklch(42% 0.12 292deg), oklch(85% 0.04 298deg));
|
|
53
|
+
--oui-purple-9: light-dark(oklch(35% 0.11 291deg), oklch(90% 0.03 299deg));
|
|
54
|
+
--oui-purple-10: light-dark(oklch(30% 0.09 290deg), oklch(95% 0.02 300deg));
|
|
55
55
|
|
|
56
|
-
--oui-red-0: light-dark(oklch(
|
|
57
|
-
--oui-red-1: light-dark(oklch(
|
|
58
|
-
--oui-red-2: light-dark(oklch(
|
|
59
|
-
--oui-red-3: light-dark(oklch(
|
|
60
|
-
--oui-red-4: light-dark(oklch(
|
|
61
|
-
--oui-red-5: light-dark(oklch(
|
|
62
|
-
--oui-red-6: light-dark(oklch(
|
|
63
|
-
--oui-red-7: light-dark(oklch(
|
|
64
|
-
--oui-red-8: light-dark(oklch(
|
|
65
|
-
--oui-red-9: light-dark(oklch(
|
|
66
|
-
--oui-red-10: light-dark(oklch(
|
|
56
|
+
--oui-red-0: light-dark(oklch(99% 0.024 25deg), oklch(20% 0.08 25deg));
|
|
57
|
+
--oui-red-1: light-dark(oklch(98.5% 0.032 24deg), oklch(25% 0.09 24deg));
|
|
58
|
+
--oui-red-2: light-dark(oklch(97% 0.05 23deg), oklch(32% 0.1 23deg));
|
|
59
|
+
--oui-red-3: light-dark(oklch(93% 0.07 22deg), oklch(40% 0.09 22deg));
|
|
60
|
+
--oui-red-4: light-dark(oklch(87% 0.1 21deg), oklch(50% 0.08 21deg));
|
|
61
|
+
--oui-red-5: light-dark(oklch(76% 0.11 20deg), oklch(60% 0.07 20deg));
|
|
62
|
+
--oui-red-6: light-dark(oklch(65% 0.12 19deg), oklch(70% 0.06 19deg));
|
|
63
|
+
--oui-red-7: light-dark(oklch(55% 0.14 18deg), oklch(80% 0.05 18deg));
|
|
64
|
+
--oui-red-8: light-dark(oklch(45% 0.12 17deg), oklch(85% 0.04 17deg));
|
|
65
|
+
--oui-red-9: light-dark(oklch(37.5% 0.11 16deg), oklch(90% 0.03 16deg));
|
|
66
|
+
--oui-red-10: light-dark(oklch(30% 0.09 15deg), oklch(95% 0.02 15deg));
|
|
67
67
|
|
|
68
|
-
--oui-yellow-0: light-dark(oklch(
|
|
69
|
-
--oui-yellow-1: light-dark(oklch(
|
|
70
|
-
--oui-yellow-2: light-dark(oklch(
|
|
71
|
-
--oui-yellow-3: light-dark(oklch(
|
|
72
|
-
--oui-yellow-4: light-dark(oklch(
|
|
73
|
-
--oui-yellow-5: light-dark(oklch(
|
|
74
|
-
--oui-yellow-6: light-dark(oklch(
|
|
75
|
-
--oui-yellow-7: light-dark(oklch(
|
|
76
|
-
--oui-yellow-8: light-dark(oklch(
|
|
77
|
-
--oui-yellow-9: light-dark(oklch(
|
|
78
|
-
--oui-yellow-10: light-dark(oklch(
|
|
68
|
+
--oui-yellow-0: light-dark(oklch(99% 0.02 100deg), oklch(20% 0.08 90deg));
|
|
69
|
+
--oui-yellow-1: light-dark(oklch(98.5% 0.035 99deg), oklch(25% 0.09 91deg));
|
|
70
|
+
--oui-yellow-2: light-dark(oklch(97% 0.05 98deg), oklch(32% 0.1 92deg));
|
|
71
|
+
--oui-yellow-3: light-dark(oklch(93% 0.07 97deg), oklch(40% 0.09 93deg));
|
|
72
|
+
--oui-yellow-4: light-dark(oklch(87% 0.1 96deg), oklch(50% 0.08 94deg));
|
|
73
|
+
--oui-yellow-5: light-dark(oklch(78% 0.11 95deg), oklch(60% 0.07 95deg));
|
|
74
|
+
--oui-yellow-6: light-dark(oklch(65% 0.12 94deg), oklch(70% 0.06 96deg));
|
|
75
|
+
--oui-yellow-7: light-dark(oklch(55% 0.14 93deg), oklch(80% 0.05 97deg));
|
|
76
|
+
--oui-yellow-8: light-dark(oklch(45% 0.12 92deg), oklch(85% 0.04 98deg));
|
|
77
|
+
--oui-yellow-9: light-dark(oklch(37.5% 0.11 91deg), oklch(90% 0.03 99deg));
|
|
78
|
+
--oui-yellow-10: light-dark(oklch(30% 0.09 90deg), oklch(95% 0.02 100deg));
|
|
79
79
|
|
|
80
|
-
--oui-gray-0: light-dark(oklch(
|
|
81
|
-
--oui-gray-1: light-dark(oklch(
|
|
82
|
-
--oui-gray-2: light-dark(oklch(
|
|
83
|
-
--oui-gray-3: light-dark(oklch(
|
|
84
|
-
--oui-gray-4: light-dark(oklch(
|
|
85
|
-
--oui-gray-5: light-dark(oklch(
|
|
86
|
-
--oui-gray-6: light-dark(oklch(
|
|
87
|
-
--oui-gray-7: light-dark(oklch(
|
|
88
|
-
--oui-gray-8: light-dark(oklch(
|
|
89
|
-
--oui-gray-9: light-dark(oklch(
|
|
90
|
-
--oui-gray-10: light-dark(oklch(
|
|
80
|
+
--oui-gray-0: light-dark(oklch(98% 0 0deg), oklch(22% 0 0deg));
|
|
81
|
+
--oui-gray-1: light-dark(oklch(98% 0 0deg), oklch(26% 0 0deg));
|
|
82
|
+
--oui-gray-2: light-dark(oklch(95% 0 0deg), oklch(32% 0 0deg));
|
|
83
|
+
--oui-gray-3: light-dark(oklch(90% 0 0deg), oklch(40% 0 0deg));
|
|
84
|
+
--oui-gray-4: light-dark(oklch(80% 0 0deg), oklch(50% 0 0deg));
|
|
85
|
+
--oui-gray-5: light-dark(oklch(70% 0 0deg), oklch(60% 0 0deg));
|
|
86
|
+
--oui-gray-6: light-dark(oklch(60% 0 0deg), oklch(70% 0 0deg));
|
|
87
|
+
--oui-gray-7: light-dark(oklch(50% 0 0deg), oklch(80% 0 0deg));
|
|
88
|
+
--oui-gray-8: light-dark(oklch(42% 0 0deg), oklch(85% 0 0deg));
|
|
89
|
+
--oui-gray-9: light-dark(oklch(35% 0 0deg), oklch(90% 0 0deg));
|
|
90
|
+
--oui-gray-10: light-dark(oklch(30% 0 0deg), oklch(95% 0 0deg));
|
|
91
91
|
|
|
92
|
-
--oui-slate-0: light-dark(oklch(
|
|
93
|
-
--oui-slate-1: light-dark(oklch(
|
|
94
|
-
--oui-slate-2: light-dark(oklch(
|
|
95
|
-
--oui-slate-3: light-dark(oklch(
|
|
96
|
-
--oui-slate-4: light-dark(oklch(
|
|
97
|
-
--oui-slate-5: light-dark(oklch(
|
|
98
|
-
--oui-slate-6: light-dark(oklch(
|
|
99
|
-
--oui-slate-7: light-dark(oklch(
|
|
100
|
-
--oui-slate-8: light-dark(oklch(
|
|
101
|
-
--oui-slate-9: light-dark(oklch(
|
|
102
|
-
--oui-slate-10: light-dark(oklch(
|
|
92
|
+
--oui-slate-0: light-dark(oklch(99% 0.0025 255deg), oklch(22% 0.005 255deg));
|
|
93
|
+
--oui-slate-1: light-dark(oklch(98% 0.005 255deg), oklch(26% 0.0075 255deg));
|
|
94
|
+
--oui-slate-2: light-dark(oklch(95% 0.0075 255deg), oklch(32% 0.01 255deg));
|
|
95
|
+
--oui-slate-3: light-dark(oklch(90% 0.01 255deg), oklch(40% 0.0125 255deg));
|
|
96
|
+
--oui-slate-4: light-dark(oklch(80% 0.015 255deg), oklch(50% 0.015 255deg));
|
|
97
|
+
--oui-slate-5: light-dark(oklch(70% 0.02 255deg), oklch(60% 0.02 255deg));
|
|
98
|
+
--oui-slate-6: light-dark(oklch(60% 0.015 255deg), oklch(70% 0.015 255deg));
|
|
99
|
+
--oui-slate-7: light-dark(oklch(50% 0.0125 255deg), oklch(80% 0.0125 255deg));
|
|
100
|
+
--oui-slate-8: light-dark(oklch(42% 0.01 255deg), oklch(85% 0.01 255deg));
|
|
101
|
+
--oui-slate-9: light-dark(oklch(35% 0.0075 255deg), oklch(90% 0.0075 255deg));
|
|
102
|
+
--oui-slate-10: light-dark(oklch(30% 0.005 255deg), oklch(95% 0.005 255deg));
|
|
103
103
|
|
|
104
|
-
--oui-stone-0: light-dark(oklch(
|
|
105
|
-
--oui-stone-1: light-dark(oklch(
|
|
106
|
-
--oui-stone-2: light-dark(oklch(
|
|
107
|
-
--oui-stone-3: light-dark(oklch(
|
|
108
|
-
--oui-stone-4: light-dark(oklch(
|
|
109
|
-
--oui-stone-5: light-dark(oklch(
|
|
110
|
-
--oui-stone-6: light-dark(oklch(
|
|
111
|
-
--oui-stone-7: light-dark(oklch(
|
|
112
|
-
--oui-stone-8: light-dark(oklch(
|
|
113
|
-
--oui-stone-9: light-dark(oklch(
|
|
114
|
-
--oui-stone-10: light-dark(oklch(
|
|
104
|
+
--oui-stone-0: light-dark(oklch(99% 0.0033 95deg), oklch(22% 0.005 95deg));
|
|
105
|
+
--oui-stone-1: light-dark(oklch(98% 0.0067 95deg), oklch(26% 0.0075 95deg));
|
|
106
|
+
--oui-stone-2: light-dark(oklch(95% 0.01 95deg), oklch(32% 0.01 95deg));
|
|
107
|
+
--oui-stone-3: light-dark(oklch(90% 0.0125 95deg), oklch(40% 0.0125 95deg));
|
|
108
|
+
--oui-stone-4: light-dark(oklch(80% 0.015 95deg), oklch(50% 0.015 95deg));
|
|
109
|
+
--oui-stone-5: light-dark(oklch(70% 0.02 95deg), oklch(60% 0.02 95deg));
|
|
110
|
+
--oui-stone-6: light-dark(oklch(60% 0.015 95deg), oklch(70% 0.015 95deg));
|
|
111
|
+
--oui-stone-7: light-dark(oklch(50% 0.0125 95deg), oklch(80% 0.0125 95deg));
|
|
112
|
+
--oui-stone-8: light-dark(oklch(42% 0.01 95deg), oklch(85% 0.01 95deg));
|
|
113
|
+
--oui-stone-9: light-dark(oklch(35% 0.0075 95deg), oklch(90% 0.0075 95deg));
|
|
114
|
+
--oui-stone-10: light-dark(oklch(30% 0.005 95deg), oklch(95% 0.005 95deg));
|
|
115
115
|
}
|