opui-css 3.3.4 → 4.0.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/CHANGELOG.md +235 -0
- package/LICENSE +21 -21
- package/MIGRATING.md +105 -0
- package/README.md +66 -29
- package/astro/index.ts +46 -0
- package/components/AGENTS.md +247 -0
- package/components/Accordion/Accordion.astro +42 -0
- package/components/Anchor/Anchor.astro +51 -0
- package/components/Avatar/Avatar.astro +44 -0
- package/components/Badge/Badge.astro +54 -0
- package/components/Button/Button.astro +45 -0
- package/components/ButtonGroup/ButtonGroup.astro +29 -0
- package/components/Callout/Callout.astro +75 -0
- package/components/Card/Card.astro +38 -0
- package/components/Checkbox/Checkbox.astro +76 -0
- package/components/Checkbox/CheckboxInput.astro +32 -0
- package/components/Chip/Chip.astro +37 -0
- package/components/ClassicSelect/ClassicSelect.astro +83 -0
- package/components/DescriptionList/Description.astro +12 -0
- package/components/DescriptionList/DescriptionList.astro +22 -0
- package/components/DescriptionList/Item.astro +12 -0
- package/components/DescriptionList/Term.astro +12 -0
- package/components/DescriptionList/index.ts +12 -0
- package/components/Dialog/Dialog.astro +43 -0
- package/components/Divider/Divider.astro +14 -0
- package/components/Drawer/Drawer.astro +49 -0
- package/components/Drawer/DrawerFooter.astro +14 -0
- package/components/Drawer/DrawerHeader.astro +31 -0
- package/components/FieldDescription/FieldDescription.astro +13 -0
- package/components/FieldGroup/FieldGroup.astro +31 -0
- package/components/FieldLegend/FieldLegend.astro +15 -0
- package/components/FieldSet/FieldSet.astro +15 -0
- package/components/Form/Form.astro +15 -0
- package/components/IconButton/IconButton.astro +26 -0
- package/components/List/List.astro +36 -0
- package/components/ListItem/ListItem.astro +118 -0
- package/components/Progress/Progress.astro +40 -0
- package/components/Radio/Radio.astro +70 -0
- package/components/Radio/RadioInput.astro +24 -0
- package/components/Range/Range.astro +136 -0
- package/components/Select/Select.astro +106 -0
- package/components/Switch/Switch.astro +101 -0
- package/components/Switch/SwitchInput.astro +25 -0
- package/components/Table/Body.astro +13 -0
- package/components/Table/Cell.astro +13 -0
- package/components/Table/Column.astro +15 -0
- package/components/Table/ColumnGroup.astro +13 -0
- package/components/Table/Head.astro +13 -0
- package/components/Table/HeaderCell.astro +13 -0
- package/components/Table/Row.astro +13 -0
- package/components/Table/Table.astro +15 -0
- package/components/Table/index.ts +20 -0
- package/components/Tabs/Tabs.astro +28 -0
- package/components/Tabs/TabsItem.astro +47 -0
- package/components/Tabs/TabsPanel.astro +21 -0
- package/components/Tabs/TabsTab.astro +19 -0
- package/components/Tabs/index.ts +14 -0
- package/components/TextField/TextField.astro +128 -0
- package/components/Textarea/Textarea.astro +106 -0
- package/components/Toast/Toast.astro +42 -0
- package/components/ToggleButton/ToggleButton.astro +53 -0
- package/components/ToggleGroup/ToggleGroup.astro +49 -0
- package/components/Tooltip/Tooltip.astro +30 -0
- package/{src/core → core}/normalize.css +194 -196
- package/core/palette.css +59 -0
- package/{src/core → core}/utils.css +71 -60
- package/css/components/accordion.css +174 -0
- package/css/components/anchor.css +27 -0
- package/{src/themes/theme-two → css}/components/avatar.css +65 -68
- package/css/components/badge.css +107 -0
- package/css/components/button-group.css +179 -0
- package/css/components/button.css +215 -0
- package/css/components/callout.css +109 -0
- package/css/components/card.css +117 -0
- package/css/components/checkbox.css +205 -0
- package/{src/themes/theme-one → css}/components/chip.css +87 -135
- package/{src/themes/theme-two/components/definition-list.css → css/components/description-list.css} +77 -68
- package/{src/themes/theme-two → css}/components/dialog.css +68 -59
- package/css/components/divider.css +20 -0
- package/css/components/drawer.css +171 -0
- package/css/components/form.css +146 -0
- package/css/components/icon-button.css +139 -0
- package/{src/themes/theme-two → css}/components/link.css +21 -21
- package/{src/themes/theme-two → css}/components/list.css +345 -318
- package/{src/themes/theme-one → css}/components/progress.css +97 -83
- package/css/components/radio.css +172 -0
- package/css/components/range.css +337 -0
- package/{src/themes/theme-two → css}/components/select.css +169 -162
- package/{src/themes/theme-two → css}/components/spinner.css +37 -38
- package/{src/themes/theme-two → css}/components/switch.css +268 -225
- package/css/components/table.css +179 -0
- package/css/components/tabs.css +77 -0
- package/css/components/text-field.css +450 -0
- package/css/components/text-input.css +53 -0
- package/{src/themes/theme-two → css}/components/textarea.css +24 -25
- package/css/components/toast.css +161 -0
- package/css/components/toggle-button.css +87 -0
- package/css/components/toggle-group.css +56 -0
- package/css/components/tooltip.css +67 -0
- package/css/components/typography.css +585 -0
- package/{src/themes/theme-two → css}/components.css +41 -37
- package/{src/themes/theme-two → css}/imports.css +16 -16
- package/css/js/checkbox.js +21 -0
- package/css/js/toast.js +94 -0
- package/css/theme.css +132 -0
- package/dist/op.css +1001 -32
- package/dist/op.css.map +1 -0
- package/dist/opui.components.css +5135 -0
- package/dist/opui.components.css.map +1 -0
- package/dist/opui.css +6604 -0
- package/dist/opui.css.map +1 -0
- package/env.d.ts +14 -0
- package/open-props.css +9 -0
- package/package.json +64 -55
- package/dist/theme-one/components.css +0 -3869
- package/dist/theme-one/theme-one.css +0 -4424
- package/dist/theme-two/components.css +0 -3591
- package/dist/theme-two/theme-two.css +0 -4141
- package/src/open-props.css +0 -10
- package/src/themes/theme-one/components/accordion.css +0 -172
- package/src/themes/theme-one/components/alert.css +0 -85
- package/src/themes/theme-one/components/avatar.css +0 -68
- package/src/themes/theme-one/components/badge.css +0 -101
- package/src/themes/theme-one/components/button-group.css +0 -69
- package/src/themes/theme-one/components/button.css +0 -281
- package/src/themes/theme-one/components/card.css +0 -82
- package/src/themes/theme-one/components/checkbox-radio.css +0 -123
- package/src/themes/theme-one/components/definition-list.css +0 -68
- package/src/themes/theme-one/components/dialog.css +0 -59
- package/src/themes/theme-one/components/divider.css +0 -7
- package/src/themes/theme-one/components/field-group.css +0 -83
- package/src/themes/theme-one/components/field.css +0 -494
- package/src/themes/theme-one/components/icon-button.css +0 -40
- package/src/themes/theme-one/components/link.css +0 -21
- package/src/themes/theme-one/components/list.css +0 -318
- package/src/themes/theme-one/components/range.css +0 -121
- package/src/themes/theme-one/components/rich-text.css +0 -210
- package/src/themes/theme-one/components/select.css +0 -163
- package/src/themes/theme-one/components/snackbar.css +0 -148
- package/src/themes/theme-one/components/spinner.css +0 -38
- package/src/themes/theme-one/components/switch.css +0 -225
- package/src/themes/theme-one/components/tab-buttons.css +0 -120
- package/src/themes/theme-one/components/table.css +0 -92
- package/src/themes/theme-one/components/text-field.css +0 -57
- package/src/themes/theme-one/components/textarea.css +0 -25
- package/src/themes/theme-one/components/toggle-button-group.css +0 -135
- package/src/themes/theme-one/components/tooltip.css +0 -94
- package/src/themes/theme-one/components/typography.css +0 -209
- package/src/themes/theme-one/components.css +0 -37
- package/src/themes/theme-one/imports.css +0 -16
- package/src/themes/theme-one/theme.css +0 -163
- package/src/themes/theme-two/components/accordion.css +0 -172
- package/src/themes/theme-two/components/alert.css +0 -85
- package/src/themes/theme-two/components/badge.css +0 -101
- package/src/themes/theme-two/components/button-group.css +0 -50
- package/src/themes/theme-two/components/button.css +0 -229
- package/src/themes/theme-two/components/card.css +0 -82
- package/src/themes/theme-two/components/checkbox-radio.css +0 -123
- package/src/themes/theme-two/components/chip.css +0 -135
- package/src/themes/theme-two/components/divider.css +0 -7
- package/src/themes/theme-two/components/field-group.css +0 -83
- package/src/themes/theme-two/components/field.css +0 -281
- package/src/themes/theme-two/components/icon-button.css +0 -40
- package/src/themes/theme-two/components/progress.css +0 -83
- package/src/themes/theme-two/components/range.css +0 -121
- package/src/themes/theme-two/components/rich-text.css +0 -210
- package/src/themes/theme-two/components/snackbar.css +0 -148
- package/src/themes/theme-two/components/tab-buttons.css +0 -120
- package/src/themes/theme-two/components/table.css +0 -99
- package/src/themes/theme-two/components/text-field.css +0 -57
- package/src/themes/theme-two/components/toggle-button-group.css +0 -135
- package/src/themes/theme-two/components/tooltip.css +0 -94
- package/src/themes/theme-two/components/typography.css +0 -209
- package/src/themes/theme-two/theme.css +0 -158
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
@layer components.root {
|
|
2
|
-
:where([role="group"].toggle-button-group) {
|
|
3
|
-
--_border-radius: var(--button-border-radius);
|
|
4
|
-
--_button-padding-inline: clamp(var(--size-2), 3cqi, var(--size-4));
|
|
5
|
-
--_max-width: auto;
|
|
6
|
-
--_icon-size: var(--size-4);
|
|
7
|
-
|
|
8
|
-
background-color: var(--surface-default);
|
|
9
|
-
border: 1px solid var(--border-color);
|
|
10
|
-
border-radius: var(--_border-radius);
|
|
11
|
-
display: flex;
|
|
12
|
-
grid-auto-columns: 1fr;
|
|
13
|
-
grid-auto-flow: column;
|
|
14
|
-
max-inline-size: var(--_max-width);
|
|
15
|
-
min-inline-size: max-content;
|
|
16
|
-
overflow: clip;
|
|
17
|
-
|
|
18
|
-
/* Size */
|
|
19
|
-
&.small {
|
|
20
|
-
button {
|
|
21
|
-
min-block-size: 2.1875rem; /* 35px */
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.x-small {
|
|
26
|
-
button {
|
|
27
|
-
min-block-size: var(--size-6); /* 30px */
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.fullwidth {
|
|
32
|
-
inline-size: 100%;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Button */
|
|
36
|
-
button {
|
|
37
|
-
--_bg-color: transparent;
|
|
38
|
-
|
|
39
|
-
align-items: center;
|
|
40
|
-
background: var(--_bg-color) var(--ripple, none);
|
|
41
|
-
border-radius: 0;
|
|
42
|
-
border-inline: 1px solid var(--border-color);
|
|
43
|
-
border-inline-start-width: 0;
|
|
44
|
-
color: var(--text-color-1);
|
|
45
|
-
display: inline-flex;
|
|
46
|
-
flex: auto;
|
|
47
|
-
gap: 1ex;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
min-block-size: 2.5rem; /* 40px */
|
|
50
|
-
min-inline-size: 5ex;
|
|
51
|
-
outline-offset: calc(-1 * var(--size-2));
|
|
52
|
-
padding: 0 var(--_button-padding-inline);
|
|
53
|
-
position: relative;
|
|
54
|
-
user-select: none;
|
|
55
|
-
|
|
56
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
57
|
-
transition: background-color 0.2s var(--ease-out-3),
|
|
58
|
-
box-shadow 0.2s var(--ease-out-3), border-color 0.2s var(--ease-out-3),
|
|
59
|
-
color 0.2s var(--ease-out-3), outline-offset 0.05s var(--ease-1);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* Element states */
|
|
63
|
-
&:hover {
|
|
64
|
-
--_bg-color: light-dark(oklch(0% 0 0 / 0.04), oklch(100% 0 0 / 0.08));
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:focus-visible {
|
|
68
|
-
outline-offset: -6px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/* Disabled */
|
|
72
|
-
&[disabled] {
|
|
73
|
-
border-color: color-mix(in oklch, var(--border-color) 50%, transparent);
|
|
74
|
-
cursor: not-allowed;
|
|
75
|
-
color: color-mix(in oklch, var(--text-color-1) 30%, transparent);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&[disabled] + &:not([disabled]):not(:last-of-type) {
|
|
79
|
-
border-inline-end-width: 1px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* Assign border radius for outline */
|
|
83
|
-
&:first-of-type {
|
|
84
|
-
border-bottom-left-radius: var(--_border-radius);
|
|
85
|
-
border-top-left-radius: var(--_border-radius);
|
|
86
|
-
}
|
|
87
|
-
&:last-of-type {
|
|
88
|
-
border-bottom-right-radius: var(--_border-radius);
|
|
89
|
-
border-top-right-radius: var(--_border-radius);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&:last-of-type {
|
|
93
|
-
border-inline-end-width: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* Ripple effect */
|
|
97
|
-
background-position: center;
|
|
98
|
-
|
|
99
|
-
&:where(:not([disabled])) {
|
|
100
|
-
&:where(:not(:active):hover) {
|
|
101
|
-
--ripple: radial-gradient(circle, transparent 1%, var(--_bg-color) 1%)
|
|
102
|
-
center/15000%;
|
|
103
|
-
|
|
104
|
-
transition: background var(--button-ripple-duration);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&:where(:hover:active) {
|
|
108
|
-
background-size: var(--button-ripple-size);
|
|
109
|
-
transition: background 0s;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/* Icons */
|
|
114
|
-
svg {
|
|
115
|
-
inline-size: var(--_icon-size);
|
|
116
|
-
inset-inline-start: calc(var(--_button-padding-inline));
|
|
117
|
-
|
|
118
|
-
& + svg {
|
|
119
|
-
max-block-size: var(--size-5);
|
|
120
|
-
max-inline-size: var(--size-7);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/* Selected */
|
|
125
|
-
&.selected {
|
|
126
|
-
--_bg-color: oklch(from var(--primary) l c h / 25%);
|
|
127
|
-
|
|
128
|
-
/* Checkmark */
|
|
129
|
-
svg:first-of-type {
|
|
130
|
-
margin-block-end: -3px;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
@layer components.root {
|
|
2
|
-
:where(.tooltip) {
|
|
3
|
-
background-color: var(--surface-tonal);
|
|
4
|
-
border-radius: var(--radius-2);
|
|
5
|
-
font-size: var(--font-size-xs);
|
|
6
|
-
margin: var(--size-1);
|
|
7
|
-
opacity: 1;
|
|
8
|
-
padding: 0 var(--size-2);
|
|
9
|
-
position: absolute;
|
|
10
|
-
position-area: block-start;
|
|
11
|
-
position-try-fallbacks: flip-block;
|
|
12
|
-
/* position-try-order: most-height; */
|
|
13
|
-
view-transition-name: vt-tooltip;
|
|
14
|
-
z-index: 1;
|
|
15
|
-
|
|
16
|
-
&:hover {
|
|
17
|
-
opacity: 1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:where([class^="top"], [class^="bottom"]) {
|
|
21
|
-
background-color: red;
|
|
22
|
-
position-try-order: most-height;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:where([class^="left"], [class^="right"]) {
|
|
26
|
-
background-color: red;
|
|
27
|
-
position-try-order: most-width;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.top {
|
|
31
|
-
position-area: block-start;
|
|
32
|
-
}
|
|
33
|
-
&.top-start {
|
|
34
|
-
position-area: block-start span-inline-start;
|
|
35
|
-
}
|
|
36
|
-
&.top-end {
|
|
37
|
-
position-area: block-start span-inline-end;
|
|
38
|
-
}
|
|
39
|
-
&.right {
|
|
40
|
-
position-area: inline-end;
|
|
41
|
-
}
|
|
42
|
-
&.right-start {
|
|
43
|
-
position-area: inline-end span-block-start;
|
|
44
|
-
}
|
|
45
|
-
&.right-end {
|
|
46
|
-
position-area: inline-end span-block-end;
|
|
47
|
-
}
|
|
48
|
-
&.bottom {
|
|
49
|
-
position-area: block-end;
|
|
50
|
-
}
|
|
51
|
-
&.bottom-start {
|
|
52
|
-
position-area: block-end span-inline-start;
|
|
53
|
-
}
|
|
54
|
-
&.bottom-end {
|
|
55
|
-
position-area: block-end span-inline-end;
|
|
56
|
-
}
|
|
57
|
-
&.left {
|
|
58
|
-
position-area: inline-start;
|
|
59
|
-
}
|
|
60
|
-
&.left-start {
|
|
61
|
-
position-area: inline-start span-block-start;
|
|
62
|
-
}
|
|
63
|
-
&.left-end {
|
|
64
|
-
position-area: inline-start span-block-end;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* Swap it around for rtl */
|
|
68
|
-
:dir(rtl) {
|
|
69
|
-
&.right {
|
|
70
|
-
position-area: inline-start;
|
|
71
|
-
}
|
|
72
|
-
&.right-start {
|
|
73
|
-
position-area: inline-start span-block-start;
|
|
74
|
-
}
|
|
75
|
-
&.right-end {
|
|
76
|
-
position-area: inline-start span-block-end;
|
|
77
|
-
}
|
|
78
|
-
&.left {
|
|
79
|
-
position-area: inline-end;
|
|
80
|
-
}
|
|
81
|
-
&.left-start {
|
|
82
|
-
position-area: inline-end span-block-start;
|
|
83
|
-
}
|
|
84
|
-
&.left-end {
|
|
85
|
-
position-area: inline-end span-block-end;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
::view-transition-old(vt-tooltip),
|
|
91
|
-
::view-transition-new(vt-tooltip) {
|
|
92
|
-
height: 100%;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
@layer components.root {
|
|
2
|
-
/* Base typography */
|
|
3
|
-
:where(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
|
|
4
|
-
color: var(--text-color-1);
|
|
5
|
-
font-weight: 700;
|
|
6
|
-
text-wrap: pretty;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
:where(h1, .h1) {
|
|
10
|
-
font-size: var(--font-size-h1, var(--font-size-7));
|
|
11
|
-
letter-spacing: -0.02em;
|
|
12
|
-
line-height: 1.15;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:where(h2, .h2) {
|
|
16
|
-
font-size: var(--font-size-h2, var(--font-size-5, 2rem));
|
|
17
|
-
letter-spacing: -0.02em;
|
|
18
|
-
line-height: 1.2;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:where(h3, .h3) {
|
|
22
|
-
font-size: var(--font-size-h3, var(--font-size-4, 1.5rem));
|
|
23
|
-
letter-spacing: -0.01em;
|
|
24
|
-
line-height: 1.167;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:where(h4, .h4) {
|
|
28
|
-
font-size: var(--font-size-h4, var(--font-size-3, 1.25rem));
|
|
29
|
-
letter-spacing: -0.01em;
|
|
30
|
-
line-height: 1.235;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:where(h5, .h5) {
|
|
34
|
-
font-size: var(--font-size-h5, var(--font-size-2, 1.1rem));
|
|
35
|
-
line-height: 1.334;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:where(h6, .h6) {
|
|
39
|
-
font-size: var(--font-size-h6, var(--font-size-1, 1rem));
|
|
40
|
-
line-height: 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:where(hgroup) {
|
|
44
|
-
& > :where(p, .p) {
|
|
45
|
-
margin: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
& > :where(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
|
|
49
|
-
margin-block-end: 0.4em;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* The second p element */
|
|
53
|
-
& > :where(p, .p):last-of-type:last-child:not(:first-child) {
|
|
54
|
-
color: oklch(from currentColor l c h / 75%);
|
|
55
|
-
font-size: var(--font-size-lg);
|
|
56
|
-
line-height: 1.6;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/** Overline */
|
|
61
|
-
:where(.overline, hgroup > :where(p, .p):first-of-type:first-child) {
|
|
62
|
-
color: light-dark(
|
|
63
|
-
oklch(from var(--text-color-2) calc(l * 1.25) c h),
|
|
64
|
-
oklch(from var(--text-color-2) calc(l * 0.75) c h)
|
|
65
|
-
);
|
|
66
|
-
font-size: var(--font-size-xs);
|
|
67
|
-
font-weight: 500;
|
|
68
|
-
letter-spacing: 0.06em;
|
|
69
|
-
line-height: 2.5;
|
|
70
|
-
text-transform: uppercase;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
:where(p, .p) {
|
|
74
|
-
text-wrap: pretty;
|
|
75
|
-
|
|
76
|
-
&.small {
|
|
77
|
-
font-size: var(--font-size-md);
|
|
78
|
-
}
|
|
79
|
-
&.large {
|
|
80
|
-
font-size: var(--font-size-lg);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/* Inline text elements */
|
|
85
|
-
:where(ins, u, abbr, dfn) {
|
|
86
|
-
text-decoration: underline;
|
|
87
|
-
text-underline-offset: 1px;
|
|
88
|
-
|
|
89
|
-
@supports (-moz-appearance: none) {
|
|
90
|
-
text-underline-offset: 2px;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
:where(abbr, dfn) {
|
|
95
|
-
font-style: normal;
|
|
96
|
-
text-decoration: var(--color-9) underline dotted;
|
|
97
|
-
|
|
98
|
-
&[title] {
|
|
99
|
-
cursor: help;
|
|
100
|
-
text-underline-offset: 1px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@supports (-moz-appearance: none) {
|
|
104
|
-
text-underline-offset: 2px;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
:where(sup) {
|
|
109
|
-
font-size: 0.5em;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:where(del, ins) {
|
|
113
|
-
color: var(--color-9);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
:where(small) {
|
|
117
|
-
font-size: max(0.5em, var(--font-size-0, 0.75rem));
|
|
118
|
-
max-inline-size: var(--size-content-1);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
:where(cite) {
|
|
122
|
-
font-style: italic;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/* Blockquote */
|
|
126
|
-
:where(blockquote) {
|
|
127
|
-
border-inline-start-width: var(--border-size-3);
|
|
128
|
-
display: grid;
|
|
129
|
-
gap: var(--size-3);
|
|
130
|
-
padding-block: var(--size-3);
|
|
131
|
-
padding-inline: var(--size-4);
|
|
132
|
-
|
|
133
|
-
:first-child {
|
|
134
|
-
margin-block-start: 0;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
:last-child {
|
|
138
|
-
margin-block-end: 0;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
footer {
|
|
142
|
-
color: var(--text-color-2);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/* Code */
|
|
147
|
-
:where(pre) {
|
|
148
|
-
border-radius: 0.375rem;
|
|
149
|
-
direction: ltr;
|
|
150
|
-
font-size: 0.875rem;
|
|
151
|
-
line-height: 1.7142857;
|
|
152
|
-
margin-block: 1.7142857em;
|
|
153
|
-
max-inline-size: max-content;
|
|
154
|
-
min-inline-size: 0;
|
|
155
|
-
padding-block: 0.8571429em;
|
|
156
|
-
padding-inline: 1.1428571em;
|
|
157
|
-
white-space: pre;
|
|
158
|
-
writing-mode: lr;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
:where(code, kbd, samp, pre) {
|
|
162
|
-
font-family: var(--font-mono);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
:where(code) {
|
|
166
|
-
background-color: oklch(00 0 0 /18%);
|
|
167
|
-
border-radius: var(--border-size-3);
|
|
168
|
-
font-size: 0.9em;
|
|
169
|
-
padding: 0.2ex 0.5ex;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
:where(kbd, var) {
|
|
173
|
-
background-color: var(--text-color-2);
|
|
174
|
-
border-color: var(--text-color-2);
|
|
175
|
-
border-radius: var(--border-radius, var(--radius-2));
|
|
176
|
-
border-width: var(--border-size-1);
|
|
177
|
-
color: var(--text-color-2-contrast);
|
|
178
|
-
padding: calc(var(--size-1) / 2) var(--size-1);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
:where(:not(pre) code, kbd) {
|
|
182
|
-
word-break: break-word;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:where(:not(pre) code) {
|
|
186
|
-
border-radius: var(--border-radius, var(--radius-2));
|
|
187
|
-
padding: var(--size-1) var(--size-2);
|
|
188
|
-
writing-mode: lr;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:where(mark) {
|
|
192
|
-
border-radius: var(--border-radius, 0);
|
|
193
|
-
box-decoration-break: clone;
|
|
194
|
-
padding: calc(var(--size-1) / 2) var(--size-1);
|
|
195
|
-
vertical-align: baseline;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* Misc */
|
|
199
|
-
:where(dt) {
|
|
200
|
-
font-weight: 700;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
:where(figure) {
|
|
204
|
-
& > :where(figcaption) {
|
|
205
|
-
font-size: var(--font-size-1, 1rem);
|
|
206
|
-
text-wrap: balance;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
theme two theme setup
|
|
3
|
-
*/
|
|
4
|
-
@layer theme {
|
|
5
|
-
.light {
|
|
6
|
-
--color-scheme: light;
|
|
7
|
-
}
|
|
8
|
-
.dark {
|
|
9
|
-
--color-scheme: dark;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:where(html) {
|
|
13
|
-
color-scheme: var(--color-scheme, light dark);
|
|
14
|
-
|
|
15
|
-
--palette-hue: var(--oklch-orange);
|
|
16
|
-
--palette-hue-rotate-by: 0;
|
|
17
|
-
--palette-chroma: 0.89;
|
|
18
|
-
|
|
19
|
-
/* Primary */
|
|
20
|
-
--primary: var(--color-8);
|
|
21
|
-
--primary-light: oklch(from var(--primary) calc(l * 1.25) c h);
|
|
22
|
-
--primary-dark: oklch(from var(--primary) calc(l * 0.75) c h);
|
|
23
|
-
--primary-contrast: var(--gray-1);
|
|
24
|
-
|
|
25
|
-
/* Text */
|
|
26
|
-
--text-color-1: light-dark(var(--gray-15), var(--gray-1));
|
|
27
|
-
--text-color-1-contrast: light-dark(var(--gray-2), var(--gray-15));
|
|
28
|
-
--text-color-2: light-dark(var(--gray-13), var(--gray-4));
|
|
29
|
-
--text-color-2-contrast: light-dark(var(--gray-4), var(--gray-13));
|
|
30
|
-
|
|
31
|
-
/* Surface */
|
|
32
|
-
--surface-default: light-dark(var(--gray-1), var(--gray-13));
|
|
33
|
-
--surface-filled: light-dark(var(--gray-3), var(--gray-15));
|
|
34
|
-
--surface-tonal: light-dark(var(--gray-3), var(--gray-12));
|
|
35
|
-
--surface-elevated: light-dark(var(--gray-1), var(--gray-12));
|
|
36
|
-
|
|
37
|
-
/* Shadows */
|
|
38
|
-
--shadow-color: light-dark(220 3% 15%, 220 40% 2%);
|
|
39
|
-
--shadow-strength: light-dark(1%, 10%);
|
|
40
|
-
--inner-shadow-highlight: light-dark(
|
|
41
|
-
inset 0 -0.5px 0 0 #fff,
|
|
42
|
-
inset 0 0.5px 0 0 #0001,
|
|
43
|
-
inset 0 -0.5px 0 0 #fff1,
|
|
44
|
-
inset 0 0.5px 0 0 #0007
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
/* Typography */
|
|
48
|
-
--font-size-h1: var(--font-size-fluid-3, 3.5rem);
|
|
49
|
-
--font-size-h2: var(--font-size-fluid-2, 2rem);
|
|
50
|
-
--font-size-h3: var(--font-size-fluid-1, 1.5rem);
|
|
51
|
-
--font-size-h4: var(--font-size-3, 1.25rem);
|
|
52
|
-
--font-size-h5: var(--font-size-2, 1.1rem);
|
|
53
|
-
--font-size-h6: var(--font-size-fluid-0, 1rem);
|
|
54
|
-
--font-size-lg: var(--font-size-3, 1.25rem);
|
|
55
|
-
--font-size-md: var(--font-size-fluid-0, 1rem);
|
|
56
|
-
--font-size-sm: 0.875rem;
|
|
57
|
-
--font-size-xs: var(--font-size-0, 0.75rem);
|
|
58
|
-
|
|
59
|
-
/* Borders */
|
|
60
|
-
--border-color: light-dark(var(--gray-4), var(--gray-12));
|
|
61
|
-
--border-radius: var(--size-2);
|
|
62
|
-
--border-width: 1px;
|
|
63
|
-
|
|
64
|
-
/* Input Field */
|
|
65
|
-
--field-border-color: var(--border-color);
|
|
66
|
-
--field-border-radius: var(--size-2);
|
|
67
|
-
--field-border-width: 1px;
|
|
68
|
-
--field-size: 2.3lh;
|
|
69
|
-
--field-size-small: 1.9lh;
|
|
70
|
-
|
|
71
|
-
/* Button */
|
|
72
|
-
--button-border-radius: var(--size-2);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* Highlight colors */
|
|
76
|
-
:where(.red, .error, del) {
|
|
77
|
-
--palette-hue: var(--oklch-red, 25);
|
|
78
|
-
--palette-chroma: 1;
|
|
79
|
-
--palette-hue-rotate-by: 1;
|
|
80
|
-
}
|
|
81
|
-
:where(.blue, .ok, abbr, dfn) {
|
|
82
|
-
--palette-hue: var(--oklch-blue, 210);
|
|
83
|
-
--palette-chroma: 1;
|
|
84
|
-
--palette-hue-rotate-by: 1;
|
|
85
|
-
}
|
|
86
|
-
:where(.green, .good, ins) {
|
|
87
|
-
--palette-hue: var(--oklch-green, 145);
|
|
88
|
-
--palette-chroma: 1;
|
|
89
|
-
--palette-hue-rotate-by: 1;
|
|
90
|
-
}
|
|
91
|
-
:where(.orange, .warning) {
|
|
92
|
-
--palette-hue: var(--oklch-orange, 75);
|
|
93
|
-
--palette-chroma: 1;
|
|
94
|
-
--palette-hue-rotate-by: 1;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
:where(html) {
|
|
98
|
-
--red: oklch(from var(--color-9) l 0.2 25);
|
|
99
|
-
--blue: oklch(from var(--color-9) l 0.2 210);
|
|
100
|
-
--green: oklch(from var(--color-9) l 0.2 145);
|
|
101
|
-
--orange: oklch(from var(--color-7) l 0.2 75);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/* Gray palette */
|
|
105
|
-
:where(html) {
|
|
106
|
-
--gray-chroma: 0.01;
|
|
107
|
-
--gray-lightness: 255;
|
|
108
|
-
|
|
109
|
-
--gray-1: oklch(
|
|
110
|
-
from var(--color-1) l var(--gray-chroma) var(--gray-lightness)
|
|
111
|
-
);
|
|
112
|
-
--gray-2: oklch(
|
|
113
|
-
from var(--color-2) l var(--gray-chroma) var(--gray-lightness)
|
|
114
|
-
);
|
|
115
|
-
--gray-3: oklch(
|
|
116
|
-
from var(--color-3) l var(--gray-chroma) var(--gray-lightness)
|
|
117
|
-
);
|
|
118
|
-
--gray-4: oklch(
|
|
119
|
-
from var(--color-4) l var(--gray-chroma) var(--gray-lightness)
|
|
120
|
-
);
|
|
121
|
-
--gray-5: oklch(
|
|
122
|
-
from var(--color-5) l var(--gray-chroma) var(--gray-lightness)
|
|
123
|
-
);
|
|
124
|
-
--gray-6: oklch(
|
|
125
|
-
from var(--color-6) l var(--gray-chroma) var(--gray-lightness)
|
|
126
|
-
);
|
|
127
|
-
--gray-7: oklch(
|
|
128
|
-
from var(--color-7) l var(--gray-chroma) var(--gray-lightness)
|
|
129
|
-
);
|
|
130
|
-
--gray-8: oklch(
|
|
131
|
-
from var(--color-8) l var(--gray-chroma) var(--gray-lightness)
|
|
132
|
-
);
|
|
133
|
-
--gray-9: oklch(
|
|
134
|
-
from var(--color-9) l var(--gray-chroma) var(--gray-lightness)
|
|
135
|
-
);
|
|
136
|
-
--gray-10: oklch(
|
|
137
|
-
from var(--color-10) l var(--gray-chroma) var(--gray-lightness)
|
|
138
|
-
);
|
|
139
|
-
--gray-11: oklch(
|
|
140
|
-
from var(--color-11) l var(--gray-chroma) var(--gray-lightness)
|
|
141
|
-
);
|
|
142
|
-
--gray-12: oklch(
|
|
143
|
-
from var(--color-12) l var(--gray-chroma) var(--gray-lightness)
|
|
144
|
-
);
|
|
145
|
-
--gray-13: oklch(
|
|
146
|
-
from var(--color-13) l var(--gray-chroma) var(--gray-lightness)
|
|
147
|
-
);
|
|
148
|
-
--gray-14: oklch(
|
|
149
|
-
from var(--color-14) l var(--gray-chroma) var(--gray-lightness)
|
|
150
|
-
);
|
|
151
|
-
--gray-15: oklch(
|
|
152
|
-
from var(--color-15) l var(--gray-chroma) var(--gray-lightness)
|
|
153
|
-
);
|
|
154
|
-
--gray-16: oklch(
|
|
155
|
-
from var(--color-16) l var(--gray-chroma) var(--gray-lightness)
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
}
|