opui-css 5.1.0 → 5.1.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/CHANGELOG.md +16 -0
- package/core/palette.css +204 -0
- package/css/theme.css +15 -22
- package/dist/op.css +0 -21
- package/dist/op.css.map +1 -1
- package/dist/opui.css +217 -43
- package/dist/opui.css.map +1 -1
- package/open-props.css +0 -2
- package/package.json +1 -1
package/dist/opui.css
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
/*
|
|
6
6
|
* Open Props
|
|
7
7
|
* Import as many props as you need here.
|
|
8
|
-
* https://app.unpkg.com/open-props@1.7.17/files/src
|
|
9
8
|
*/
|
|
10
9
|
|
|
11
10
|
@layer openprops{
|
|
@@ -974,28 +973,211 @@
|
|
|
974
973
|
}
|
|
975
974
|
}
|
|
976
975
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
--gray-4: oklch(74% var(--gray-chroma, none) var(--gray-hue, none));
|
|
984
|
-
--gray-5: oklch(68% var(--gray-chroma, none) var(--gray-hue, none));
|
|
985
|
-
--gray-6: oklch(63% var(--gray-chroma, none) var(--gray-hue, none));
|
|
986
|
-
--gray-7: oklch(58% var(--gray-chroma, none) var(--gray-hue, none));
|
|
987
|
-
--gray-8: oklch(53% var(--gray-chroma, none) var(--gray-hue, none));
|
|
988
|
-
--gray-9: oklch(49% var(--gray-chroma, none) var(--gray-hue, none));
|
|
989
|
-
--gray-10: oklch(43% var(--gray-chroma, none) var(--gray-hue, none));
|
|
990
|
-
--gray-11: oklch(37% var(--gray-chroma, none) var(--gray-hue, none));
|
|
991
|
-
--gray-12: oklch(31% var(--gray-chroma, none) var(--gray-hue, none));
|
|
992
|
-
--gray-13: oklch(25% var(--gray-chroma, none) var(--gray-hue, none));
|
|
993
|
-
--gray-14: oklch(18% var(--gray-chroma, none) var(--gray-hue, none));
|
|
994
|
-
--gray-15: oklch(10% var(--gray-chroma, none) var(--gray-hue, none));
|
|
976
|
+
/* Theme */
|
|
977
|
+
|
|
978
|
+
@property --color-1 {
|
|
979
|
+
syntax: "<color>";
|
|
980
|
+
inherits: true;
|
|
981
|
+
initial-value: transparent;
|
|
995
982
|
}
|
|
983
|
+
|
|
984
|
+
@property --color-2 {
|
|
985
|
+
syntax: "<color>";
|
|
986
|
+
inherits: true;
|
|
987
|
+
initial-value: transparent;
|
|
996
988
|
}
|
|
997
989
|
|
|
998
|
-
|
|
990
|
+
@property --color-3 {
|
|
991
|
+
syntax: "<color>";
|
|
992
|
+
inherits: true;
|
|
993
|
+
initial-value: transparent;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
@property --color-4 {
|
|
997
|
+
syntax: "<color>";
|
|
998
|
+
inherits: true;
|
|
999
|
+
initial-value: transparent;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
@property --color-5 {
|
|
1003
|
+
syntax: "<color>";
|
|
1004
|
+
inherits: true;
|
|
1005
|
+
initial-value: transparent;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
@property --color-6 {
|
|
1009
|
+
syntax: "<color>";
|
|
1010
|
+
inherits: true;
|
|
1011
|
+
initial-value: transparent;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
@property --color-7 {
|
|
1015
|
+
syntax: "<color>";
|
|
1016
|
+
inherits: true;
|
|
1017
|
+
initial-value: transparent;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
@property --color-8 {
|
|
1021
|
+
syntax: "<color>";
|
|
1022
|
+
inherits: true;
|
|
1023
|
+
initial-value: transparent;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
@property --color-9 {
|
|
1027
|
+
syntax: "<color>";
|
|
1028
|
+
inherits: true;
|
|
1029
|
+
initial-value: transparent;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
@property --color-10 {
|
|
1033
|
+
syntax: "<color>";
|
|
1034
|
+
inherits: true;
|
|
1035
|
+
initial-value: transparent;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
@property --color-11 {
|
|
1039
|
+
syntax: "<color>";
|
|
1040
|
+
inherits: true;
|
|
1041
|
+
initial-value: transparent;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
@property --color-12 {
|
|
1045
|
+
syntax: "<color>";
|
|
1046
|
+
inherits: true;
|
|
1047
|
+
initial-value: transparent;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
@property --color-13 {
|
|
1051
|
+
syntax: "<color>";
|
|
1052
|
+
inherits: true;
|
|
1053
|
+
initial-value: transparent;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
@property --color-14 {
|
|
1057
|
+
syntax: "<color>";
|
|
1058
|
+
inherits: true;
|
|
1059
|
+
initial-value: transparent;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
@property --color-15 {
|
|
1063
|
+
syntax: "<color>";
|
|
1064
|
+
inherits: true;
|
|
1065
|
+
initial-value: transparent;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
@property --color-16 {
|
|
1069
|
+
syntax: "<color>";
|
|
1070
|
+
inherits: true;
|
|
1071
|
+
initial-value: transparent;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
@property --gray-1 {
|
|
1075
|
+
syntax: "<color>";
|
|
1076
|
+
inherits: true;
|
|
1077
|
+
initial-value: transparent;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
@property --gray-2 {
|
|
1081
|
+
syntax: "<color>";
|
|
1082
|
+
inherits: true;
|
|
1083
|
+
initial-value: transparent;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
@property --gray-3 {
|
|
1087
|
+
syntax: "<color>";
|
|
1088
|
+
inherits: true;
|
|
1089
|
+
initial-value: transparent;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
@property --gray-4 {
|
|
1093
|
+
syntax: "<color>";
|
|
1094
|
+
inherits: true;
|
|
1095
|
+
initial-value: transparent;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
@property --gray-5 {
|
|
1099
|
+
syntax: "<color>";
|
|
1100
|
+
inherits: true;
|
|
1101
|
+
initial-value: transparent;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
@property --gray-6 {
|
|
1105
|
+
syntax: "<color>";
|
|
1106
|
+
inherits: true;
|
|
1107
|
+
initial-value: transparent;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
@property --gray-7 {
|
|
1111
|
+
syntax: "<color>";
|
|
1112
|
+
inherits: true;
|
|
1113
|
+
initial-value: transparent;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
@property --gray-8 {
|
|
1117
|
+
syntax: "<color>";
|
|
1118
|
+
inherits: true;
|
|
1119
|
+
initial-value: transparent;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
@property --gray-9 {
|
|
1123
|
+
syntax: "<color>";
|
|
1124
|
+
inherits: true;
|
|
1125
|
+
initial-value: transparent;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
@property --gray-10 {
|
|
1129
|
+
syntax: "<color>";
|
|
1130
|
+
inherits: true;
|
|
1131
|
+
initial-value: transparent;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
@property --gray-11 {
|
|
1135
|
+
syntax: "<color>";
|
|
1136
|
+
inherits: true;
|
|
1137
|
+
initial-value: transparent;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
@property --gray-12 {
|
|
1141
|
+
syntax: "<color>";
|
|
1142
|
+
inherits: true;
|
|
1143
|
+
initial-value: transparent;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
@property --gray-13 {
|
|
1147
|
+
syntax: "<color>";
|
|
1148
|
+
inherits: true;
|
|
1149
|
+
initial-value: transparent;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
@property --gray-14 {
|
|
1153
|
+
syntax: "<color>";
|
|
1154
|
+
inherits: true;
|
|
1155
|
+
initial-value: transparent;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
@property --gray-15 {
|
|
1159
|
+
syntax: "<color>";
|
|
1160
|
+
inherits: true;
|
|
1161
|
+
initial-value: transparent;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
@property --gray-16 {
|
|
1165
|
+
syntax: "<color>";
|
|
1166
|
+
inherits: true;
|
|
1167
|
+
initial-value: transparent;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
@property --palette-source {
|
|
1171
|
+
syntax: "<color>";
|
|
1172
|
+
inherits: true;
|
|
1173
|
+
initial-value: transparent;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
@property --palette-hue {
|
|
1177
|
+
syntax: "<number>";
|
|
1178
|
+
inherits: true;
|
|
1179
|
+
initial-value: 240;
|
|
1180
|
+
}
|
|
999
1181
|
|
|
1000
1182
|
@layer theme.palette {
|
|
1001
1183
|
:where(
|
|
@@ -1108,11 +1290,8 @@
|
|
|
1108
1290
|
}
|
|
1109
1291
|
}
|
|
1110
1292
|
|
|
1111
|
-
/*
|
|
1112
|
-
theme three theme setup
|
|
1113
|
-
*/
|
|
1114
|
-
|
|
1115
1293
|
@layer theme {
|
|
1294
|
+
|
|
1116
1295
|
/* 1. Color scheme */
|
|
1117
1296
|
.ui-light {
|
|
1118
1297
|
--color-scheme: light;
|
|
@@ -1125,17 +1304,16 @@
|
|
|
1125
1304
|
:where(html) {
|
|
1126
1305
|
color-scheme: var(--color-scheme, light dark);
|
|
1127
1306
|
|
|
1128
|
-
/* 2. Palette
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
--palette-source:
|
|
1132
|
-
oklch(0.58 calc(0.21 * 0.5) var(--hue-blue)),
|
|
1133
|
-
oklch(0.58 calc(0.21 * 0.5) var(--hue-blue))
|
|
1134
|
-
);
|
|
1135
|
-
--palette-hue-rotate-by: 0;
|
|
1307
|
+
/* 2. Palette - override the values in core/palette.css */
|
|
1308
|
+
--palette-hue: light-dark(var(--hue-green), var(--hue-blue));
|
|
1309
|
+
--palette-chroma: 0.5;
|
|
1310
|
+
/* --palette-source: oklch(.58 calc(.21 * .5) var(--hue-blue)); */
|
|
1136
1311
|
|
|
1137
|
-
/* Gray
|
|
1138
|
-
|
|
1312
|
+
/* Gray palette also lives in core/palette.css. */
|
|
1313
|
+
/*
|
|
1314
|
+
--gray-hue: 255;
|
|
1315
|
+
--gray-chroma: 0.01;
|
|
1316
|
+
*/
|
|
1139
1317
|
|
|
1140
1318
|
/* 3. Named colors (no severity meaning) — use when you literally want a green/red/etc. dot */
|
|
1141
1319
|
--blue: oklch(from var(--color-9) l 0.2 210);
|
|
@@ -1144,8 +1322,8 @@
|
|
|
1144
1322
|
--red: oklch(from var(--color-9) l 0.2 25);
|
|
1145
1323
|
|
|
1146
1324
|
/* 4. Intent tokens
|
|
1147
|
-
|
|
1148
|
-
|
|
1325
|
+
Severity (have scope classes below): --success, --info, --warning, --critical
|
|
1326
|
+
Non-severity (value-only): --primary, --neutral */
|
|
1149
1327
|
--success: var(--green);
|
|
1150
1328
|
--info: var(--blue);
|
|
1151
1329
|
--warning: var(--orange);
|
|
@@ -1175,8 +1353,7 @@
|
|
|
1175
1353
|
--border-radius: var(--size-2);
|
|
1176
1354
|
--border-width: 1px;
|
|
1177
1355
|
|
|
1178
|
-
/* 9. Focus ring
|
|
1179
|
-
(e.g. .ui-button.ui-filled { --focus-ring-offset: 3px; }, .ui-checkbox { --focus-ring-offset: 0; }) */
|
|
1356
|
+
/* 9. Focus ring */
|
|
1180
1357
|
--focus-ring-color: var(--primary);
|
|
1181
1358
|
--focus-ring-width: 2px;
|
|
1182
1359
|
--focus-ring-offset: 2px;
|
|
@@ -1193,8 +1370,7 @@
|
|
|
1193
1370
|
/* Sneaking in an extra font size I want but Open Props doesn't provide. You can do whatever you want with your own theme. It's just CSS. */
|
|
1194
1371
|
--font-size-05: 0.875rem;
|
|
1195
1372
|
|
|
1196
|
-
/* 11. Control sizes — shared scale for fields and buttons so they line up
|
|
1197
|
-
visually. --field-size-* and --button-size-* alias from --control-size-*. */
|
|
1373
|
+
/* 11. Control sizes — shared scale for fields and buttons so they line up. */
|
|
1198
1374
|
--control-size-x-small: 28px;
|
|
1199
1375
|
--control-size-small: 32px;
|
|
1200
1376
|
--control-size: 40px;
|
|
@@ -1219,9 +1395,7 @@
|
|
|
1219
1395
|
--button-border-radius: var(--size-2);
|
|
1220
1396
|
}
|
|
1221
1397
|
|
|
1222
|
-
/* 14. Severity scope classes
|
|
1223
|
-
Authoring `<div class="ui-warning">` paints the entire subtree warning-orange.
|
|
1224
|
-
Non-severity tokens (--primary, --neutral) deliberately have no scope class. */
|
|
1398
|
+
/* 14. Severity scope classes */
|
|
1225
1399
|
:where(.ui-critical, [data-invalid], del) {
|
|
1226
1400
|
--palette-source: oklch(0.58 0.21 var(--hue-red));
|
|
1227
1401
|
--palette-hue-rotate-by: 1;
|