@flood-md/tokens 0.2.2 → 0.2.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @flood-md/tokens
2
2
 
3
- Typed reference values and semantic CSS roles for Flood **0.2.2**. Keep Flood
3
+ Typed reference values and semantic CSS roles for Flood **0.2.3**. Keep Flood
4
4
  package versions aligned. Existing 0.1.1 installs use their earlier token contract.
5
5
 
6
6
  React consumers import @flood-md/react/styles.css and use FloodRoot. Token-only
@@ -19,9 +19,14 @@ on their scope; repeat both attributes for nested scopes. See the
19
19
  [foundations guide](../../docs/foundations.md) for supported types and limits.
20
20
 
21
21
  The React package bundles Inter and its OFL license. Token-only consumers provide
22
- their own font setup. Quiet field outlines need their separate necessary
23
- boundary signal; decorative line contrast is distinct from text accessibility.
22
+ their own font setup. Version 0.2.3 maps the quiet field.border role to the
23
+ container-outline tone. field.boundary remains a stronger opt-in; the quiet
24
+ default does not establish 3:1 non-text contrast. Evaluate actual recognition
25
+ and accessibility for the host composition.
24
26
 
25
27
  Legacy ./tokens.css and JSON retain the earlier shared/light/dark contract and
26
28
  --flood-* names. Legacy controls outside FloodRoot remain compatible; legacy
27
29
  overrides do not automatically change separately scoped foundations roles.
30
+
31
+ Version 0.2.3 adds scrollbar size/inset/min-thumb roles and semantic thumb/hover
32
+ colors, expanding the profile to 168 roles. Install matching package versions.
@@ -76,6 +76,9 @@
76
76
  --flood-ref-radius-field: 1rem;
77
77
  --flood-ref-radius-indicator: 0.375rem;
78
78
  --flood-ref-radius-surface: 2rem;
79
+ --flood-ref-scrollbar-inset: 0.25rem;
80
+ --flood-ref-scrollbar-min-thumb: 1.5rem;
81
+ --flood-ref-scrollbar-size: 0.375rem;
79
82
  --flood-ref-size-choice: 1.125rem;
80
83
  --flood-ref-size-switch-height: 1.375rem;
81
84
  --flood-ref-size-switch-thumb: 1rem;
@@ -167,13 +170,15 @@
167
170
  --flood-sys-color-feedback-success: var(--flood-ref-color-feedback-success);
168
171
  --flood-sys-color-feedback-warning: var(--flood-ref-color-feedback-warning);
169
172
  --flood-sys-color-field-background: var(--flood-ref-color-neutral-850);
170
- --flood-sys-color-field-border: var(--flood-ref-color-neutral-650);
173
+ --flood-sys-color-field-border: var(--flood-ref-color-neutral-750);
171
174
  --flood-sys-color-field-boundary: var(--flood-ref-color-neutral-500);
172
175
  --flood-sys-color-field-content: var(--flood-ref-color-neutral-0);
173
176
  --flood-sys-color-field-disabled: var(--flood-ref-color-neutral-900);
174
177
  --flood-sys-color-field-disabled-content: var(--flood-ref-color-neutral-550);
175
178
  --flood-sys-color-field-placeholder: var(--flood-ref-color-neutral-320);
176
179
  --flood-sys-color-focus-ring: var(--flood-ref-color-accent-default);
180
+ --flood-sys-color-scrollbar-thumb: var(--flood-ref-color-neutral-550);
181
+ --flood-sys-color-scrollbar-thumb-hover: var(--flood-ref-color-neutral-320);
177
182
  --flood-sys-color-selection-background: var(--flood-ref-color-neutral-750);
178
183
  --flood-sys-color-selection-content: var(--flood-ref-color-neutral-0);
179
184
  --flood-sys-color-surface-canvas: var(--flood-ref-color-neutral-950);
@@ -240,6 +245,9 @@
240
245
  --flood-sys-radius-field: var(--flood-ref-radius-field);
241
246
  --flood-sys-radius-indicator: var(--flood-ref-radius-indicator);
242
247
  --flood-sys-radius-surface: var(--flood-ref-radius-surface);
248
+ --flood-sys-scrollbar-inset: var(--flood-ref-scrollbar-inset);
249
+ --flood-sys-scrollbar-min-thumb: var(--flood-ref-scrollbar-min-thumb);
250
+ --flood-sys-scrollbar-size: var(--flood-ref-scrollbar-size);
243
251
  --flood-sys-size-choice: var(--flood-ref-size-choice);
244
252
  --flood-sys-size-switch-height: var(--flood-ref-size-switch-height);
245
253
  --flood-sys-size-switch-thumb: var(--flood-ref-size-switch-thumb);
@@ -43,6 +43,8 @@ export declare const tokenNames: Readonly<{
43
43
  readonly "sys.color.field.disabled-content": "--flood-sys-color-field-disabled-content";
44
44
  readonly "sys.color.field.placeholder": "--flood-sys-color-field-placeholder";
45
45
  readonly "sys.color.focus.ring": "--flood-sys-color-focus-ring";
46
+ readonly "sys.color.scrollbar.thumb": "--flood-sys-color-scrollbar-thumb";
47
+ readonly "sys.color.scrollbar.thumb-hover": "--flood-sys-color-scrollbar-thumb-hover";
46
48
  readonly "sys.color.selection.background": "--flood-sys-color-selection-background";
47
49
  readonly "sys.color.selection.content": "--flood-sys-color-selection-content";
48
50
  readonly "sys.color.surface.canvas": "--flood-sys-color-surface-canvas";
@@ -109,6 +111,9 @@ export declare const tokenNames: Readonly<{
109
111
  readonly "sys.radius.field": "--flood-sys-radius-field";
110
112
  readonly "sys.radius.indicator": "--flood-sys-radius-indicator";
111
113
  readonly "sys.radius.surface": "--flood-sys-radius-surface";
114
+ readonly "sys.scrollbar.inset": "--flood-sys-scrollbar-inset";
115
+ readonly "sys.scrollbar.min-thumb": "--flood-sys-scrollbar-min-thumb";
116
+ readonly "sys.scrollbar.size": "--flood-sys-scrollbar-size";
112
117
  readonly "sys.size.choice": "--flood-sys-size-choice";
113
118
  readonly "sys.size.switch-height": "--flood-sys-size-switch-height";
114
119
  readonly "sys.size.switch-thumb": "--flood-sys-size-switch-thumb";
@@ -43,6 +43,8 @@ export const tokenNames = Object.freeze({
43
43
  "sys.color.field.disabled-content": "--flood-sys-color-field-disabled-content",
44
44
  "sys.color.field.placeholder": "--flood-sys-color-field-placeholder",
45
45
  "sys.color.focus.ring": "--flood-sys-color-focus-ring",
46
+ "sys.color.scrollbar.thumb": "--flood-sys-color-scrollbar-thumb",
47
+ "sys.color.scrollbar.thumb-hover": "--flood-sys-color-scrollbar-thumb-hover",
46
48
  "sys.color.selection.background": "--flood-sys-color-selection-background",
47
49
  "sys.color.selection.content": "--flood-sys-color-selection-content",
48
50
  "sys.color.surface.canvas": "--flood-sys-color-surface-canvas",
@@ -109,6 +111,9 @@ export const tokenNames = Object.freeze({
109
111
  "sys.radius.field": "--flood-sys-radius-field",
110
112
  "sys.radius.indicator": "--flood-sys-radius-indicator",
111
113
  "sys.radius.surface": "--flood-sys-radius-surface",
114
+ "sys.scrollbar.inset": "--flood-sys-scrollbar-inset",
115
+ "sys.scrollbar.min-thumb": "--flood-sys-scrollbar-min-thumb",
116
+ "sys.scrollbar.size": "--flood-sys-scrollbar-size",
112
117
  "sys.size.choice": "--flood-sys-size-choice",
113
118
  "sys.size.switch-height": "--flood-sys-size-switch-height",
114
119
  "sys.size.switch-thumb": "--flood-sys-size-switch-thumb",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "status": "experimental",
5
5
  "contexts": [
6
6
  {
@@ -1114,29 +1114,29 @@
1114
1114
  "id": "sys.color.field.border",
1115
1115
  "type": "color",
1116
1116
  "cssName": "--flood-sys-color-field-border",
1117
- "description": "Quiet field outline; supplement with field.boundary when boundary is necessary",
1117
+ "description": "Quiet default control outline; use field.boundary explicitly when a stronger recognition signal is required",
1118
1118
  "status": "experimental",
1119
1119
  "visibility": "public",
1120
1120
  "owner": "foundations",
1121
1121
  "since": "0.2.0",
1122
1122
  "usage": {
1123
1123
  "allowed": [
1124
- "Quiet field outline; supplement with field.boundary when boundary is necessary"
1124
+ "Quiet default control outline; use field.boundary explicitly when a stronger recognition signal is required"
1125
1125
  ],
1126
1126
  "avoid": []
1127
1127
  },
1128
1128
  "value": {
1129
1129
  "colorSpace": "srgb",
1130
1130
  "components": [
1131
- 0.2901960784313726,
1132
- 0.2901960784313726,
1133
- 0.2901960784313726
1131
+ 0.2196078431372549,
1132
+ 0.2196078431372549,
1133
+ 0.2196078431372549
1134
1134
  ],
1135
1135
  "alpha": 1
1136
1136
  },
1137
- "alias": "ref.color.neutral.650",
1137
+ "alias": "ref.color.neutral.750",
1138
1138
  "dependencies": [
1139
- "ref.color.neutral.650"
1139
+ "ref.color.neutral.750"
1140
1140
  ],
1141
1141
  "dependents": []
1142
1142
  },
@@ -1320,6 +1320,66 @@
1320
1320
  ],
1321
1321
  "dependents": []
1322
1322
  },
1323
+ {
1324
+ "id": "sys.color.scrollbar.thumb",
1325
+ "type": "color",
1326
+ "cssName": "--flood-sys-color-scrollbar-thumb",
1327
+ "description": "Overlay scrollbar thumb",
1328
+ "status": "experimental",
1329
+ "visibility": "public",
1330
+ "owner": "foundations",
1331
+ "since": "0.2.3",
1332
+ "usage": {
1333
+ "allowed": [
1334
+ "Overlay scrollbar thumb"
1335
+ ],
1336
+ "avoid": []
1337
+ },
1338
+ "value": {
1339
+ "colorSpace": "srgb",
1340
+ "components": [
1341
+ 0.47843137254901963,
1342
+ 0.47843137254901963,
1343
+ 0.47843137254901963
1344
+ ],
1345
+ "alpha": 1
1346
+ },
1347
+ "alias": "ref.color.neutral.550",
1348
+ "dependencies": [
1349
+ "ref.color.neutral.550"
1350
+ ],
1351
+ "dependents": []
1352
+ },
1353
+ {
1354
+ "id": "sys.color.scrollbar.thumb-hover",
1355
+ "type": "color",
1356
+ "cssName": "--flood-sys-color-scrollbar-thumb-hover",
1357
+ "description": "Hovered or dragged overlay scrollbar thumb",
1358
+ "status": "experimental",
1359
+ "visibility": "public",
1360
+ "owner": "foundations",
1361
+ "since": "0.2.3",
1362
+ "usage": {
1363
+ "allowed": [
1364
+ "Hovered or dragged overlay scrollbar thumb"
1365
+ ],
1366
+ "avoid": []
1367
+ },
1368
+ "value": {
1369
+ "colorSpace": "srgb",
1370
+ "components": [
1371
+ 0.6980392156862745,
1372
+ 0.6980392156862745,
1373
+ 0.6980392156862745
1374
+ ],
1375
+ "alpha": 1
1376
+ },
1377
+ "alias": "ref.color.neutral.320",
1378
+ "dependencies": [
1379
+ "ref.color.neutral.320"
1380
+ ],
1381
+ "dependents": []
1382
+ },
1323
1383
  {
1324
1384
  "id": "sys.color.selection.background",
1325
1385
  "type": "color",
@@ -2969,6 +3029,81 @@
2969
3029
  ],
2970
3030
  "dependents": []
2971
3031
  },
3032
+ {
3033
+ "id": "sys.scrollbar.inset",
3034
+ "type": "dimension",
3035
+ "cssName": "--flood-sys-scrollbar-inset",
3036
+ "description": "Overlay scrollbar inset",
3037
+ "status": "experimental",
3038
+ "visibility": "public",
3039
+ "owner": "foundations",
3040
+ "since": "0.2.3",
3041
+ "usage": {
3042
+ "allowed": [
3043
+ "Overlay scrollbar inset"
3044
+ ],
3045
+ "avoid": []
3046
+ },
3047
+ "value": {
3048
+ "value": 0.25,
3049
+ "unit": "rem"
3050
+ },
3051
+ "alias": "ref.scrollbar.inset",
3052
+ "dependencies": [
3053
+ "ref.scrollbar.inset"
3054
+ ],
3055
+ "dependents": []
3056
+ },
3057
+ {
3058
+ "id": "sys.scrollbar.min-thumb",
3059
+ "type": "dimension",
3060
+ "cssName": "--flood-sys-scrollbar-min-thumb",
3061
+ "description": "Overlay scrollbar min-thumb",
3062
+ "status": "experimental",
3063
+ "visibility": "public",
3064
+ "owner": "foundations",
3065
+ "since": "0.2.3",
3066
+ "usage": {
3067
+ "allowed": [
3068
+ "Overlay scrollbar min-thumb"
3069
+ ],
3070
+ "avoid": []
3071
+ },
3072
+ "value": {
3073
+ "value": 1.5,
3074
+ "unit": "rem"
3075
+ },
3076
+ "alias": "ref.scrollbar.min-thumb",
3077
+ "dependencies": [
3078
+ "ref.scrollbar.min-thumb"
3079
+ ],
3080
+ "dependents": []
3081
+ },
3082
+ {
3083
+ "id": "sys.scrollbar.size",
3084
+ "type": "dimension",
3085
+ "cssName": "--flood-sys-scrollbar-size",
3086
+ "description": "Overlay scrollbar size",
3087
+ "status": "experimental",
3088
+ "visibility": "public",
3089
+ "owner": "foundations",
3090
+ "since": "0.2.3",
3091
+ "usage": {
3092
+ "allowed": [
3093
+ "Overlay scrollbar size"
3094
+ ],
3095
+ "avoid": []
3096
+ },
3097
+ "value": {
3098
+ "value": 0.375,
3099
+ "unit": "rem"
3100
+ },
3101
+ "alias": "ref.scrollbar.size",
3102
+ "dependencies": [
3103
+ "ref.scrollbar.size"
3104
+ ],
3105
+ "dependents": []
3106
+ },
2972
3107
  {
2973
3108
  "id": "sys.size.choice",
2974
3109
  "type": "dimension",
@@ -1763,6 +1763,74 @@
1763
1763
  }
1764
1764
  }
1765
1765
  },
1766
+ "scrollbar": {
1767
+ "inset": {
1768
+ "$type": "dimension",
1769
+ "$value": {
1770
+ "value": 0.25,
1771
+ "unit": "rem"
1772
+ },
1773
+ "$description": "Overlay scrollbar inset",
1774
+ "$extensions": {
1775
+ "md.flood": {
1776
+ "status": "experimental",
1777
+ "visibility": "internal",
1778
+ "owner": "foundations",
1779
+ "since": "0.2.3",
1780
+ "usage": {
1781
+ "allowed": [
1782
+ "Overlay scrollbar inset"
1783
+ ],
1784
+ "avoid": []
1785
+ }
1786
+ }
1787
+ }
1788
+ },
1789
+ "min-thumb": {
1790
+ "$type": "dimension",
1791
+ "$value": {
1792
+ "value": 1.5,
1793
+ "unit": "rem"
1794
+ },
1795
+ "$description": "Overlay scrollbar min-thumb",
1796
+ "$extensions": {
1797
+ "md.flood": {
1798
+ "status": "experimental",
1799
+ "visibility": "internal",
1800
+ "owner": "foundations",
1801
+ "since": "0.2.3",
1802
+ "usage": {
1803
+ "allowed": [
1804
+ "Overlay scrollbar min-thumb"
1805
+ ],
1806
+ "avoid": []
1807
+ }
1808
+ }
1809
+ }
1810
+ },
1811
+ "size": {
1812
+ "$type": "dimension",
1813
+ "$value": {
1814
+ "value": 0.375,
1815
+ "unit": "rem"
1816
+ },
1817
+ "$description": "Overlay scrollbar size",
1818
+ "$extensions": {
1819
+ "md.flood": {
1820
+ "status": "experimental",
1821
+ "visibility": "internal",
1822
+ "owner": "foundations",
1823
+ "since": "0.2.3",
1824
+ "usage": {
1825
+ "allowed": [
1826
+ "Overlay scrollbar size"
1827
+ ],
1828
+ "avoid": []
1829
+ }
1830
+ }
1831
+ }
1832
+ }
1833
+ },
1766
1834
  "size": {
1767
1835
  "choice": {
1768
1836
  "$type": "dimension",
@@ -3965,13 +4033,13 @@
3965
4033
  "$value": {
3966
4034
  "colorSpace": "srgb",
3967
4035
  "components": [
3968
- 0.2901960784313726,
3969
- 0.2901960784313726,
3970
- 0.2901960784313726
4036
+ 0.2196078431372549,
4037
+ 0.2196078431372549,
4038
+ 0.2196078431372549
3971
4039
  ],
3972
4040
  "alpha": 1
3973
4041
  },
3974
- "$description": "Quiet field outline; supplement with field.boundary when boundary is necessary",
4042
+ "$description": "Quiet default control outline; use field.boundary explicitly when a stronger recognition signal is required",
3975
4043
  "$extensions": {
3976
4044
  "md.flood": {
3977
4045
  "status": "experimental",
@@ -3980,7 +4048,7 @@
3980
4048
  "since": "0.2.0",
3981
4049
  "usage": {
3982
4050
  "allowed": [
3983
- "Quiet field outline; supplement with field.boundary when boundary is necessary"
4051
+ "Quiet default control outline; use field.boundary explicitly when a stronger recognition signal is required"
3984
4052
  ],
3985
4053
  "avoid": []
3986
4054
  }
@@ -4152,6 +4220,62 @@
4152
4220
  }
4153
4221
  }
4154
4222
  },
4223
+ "scrollbar": {
4224
+ "thumb": {
4225
+ "$type": "color",
4226
+ "$value": {
4227
+ "colorSpace": "srgb",
4228
+ "components": [
4229
+ 0.47843137254901963,
4230
+ 0.47843137254901963,
4231
+ 0.47843137254901963
4232
+ ],
4233
+ "alpha": 1
4234
+ },
4235
+ "$description": "Overlay scrollbar thumb",
4236
+ "$extensions": {
4237
+ "md.flood": {
4238
+ "status": "experimental",
4239
+ "visibility": "public",
4240
+ "owner": "foundations",
4241
+ "since": "0.2.3",
4242
+ "usage": {
4243
+ "allowed": [
4244
+ "Overlay scrollbar thumb"
4245
+ ],
4246
+ "avoid": []
4247
+ }
4248
+ }
4249
+ }
4250
+ },
4251
+ "thumb-hover": {
4252
+ "$type": "color",
4253
+ "$value": {
4254
+ "colorSpace": "srgb",
4255
+ "components": [
4256
+ 0.6980392156862745,
4257
+ 0.6980392156862745,
4258
+ 0.6980392156862745
4259
+ ],
4260
+ "alpha": 1
4261
+ },
4262
+ "$description": "Hovered or dragged overlay scrollbar thumb",
4263
+ "$extensions": {
4264
+ "md.flood": {
4265
+ "status": "experimental",
4266
+ "visibility": "public",
4267
+ "owner": "foundations",
4268
+ "since": "0.2.3",
4269
+ "usage": {
4270
+ "allowed": [
4271
+ "Hovered or dragged overlay scrollbar thumb"
4272
+ ],
4273
+ "avoid": []
4274
+ }
4275
+ }
4276
+ }
4277
+ }
4278
+ },
4155
4279
  "selection": {
4156
4280
  "background": {
4157
4281
  "$type": "color",
@@ -5634,6 +5758,74 @@
5634
5758
  }
5635
5759
  }
5636
5760
  },
5761
+ "scrollbar": {
5762
+ "inset": {
5763
+ "$type": "dimension",
5764
+ "$value": {
5765
+ "value": 0.25,
5766
+ "unit": "rem"
5767
+ },
5768
+ "$description": "Overlay scrollbar inset",
5769
+ "$extensions": {
5770
+ "md.flood": {
5771
+ "status": "experimental",
5772
+ "visibility": "public",
5773
+ "owner": "foundations",
5774
+ "since": "0.2.3",
5775
+ "usage": {
5776
+ "allowed": [
5777
+ "Overlay scrollbar inset"
5778
+ ],
5779
+ "avoid": []
5780
+ }
5781
+ }
5782
+ }
5783
+ },
5784
+ "min-thumb": {
5785
+ "$type": "dimension",
5786
+ "$value": {
5787
+ "value": 1.5,
5788
+ "unit": "rem"
5789
+ },
5790
+ "$description": "Overlay scrollbar min-thumb",
5791
+ "$extensions": {
5792
+ "md.flood": {
5793
+ "status": "experimental",
5794
+ "visibility": "public",
5795
+ "owner": "foundations",
5796
+ "since": "0.2.3",
5797
+ "usage": {
5798
+ "allowed": [
5799
+ "Overlay scrollbar min-thumb"
5800
+ ],
5801
+ "avoid": []
5802
+ }
5803
+ }
5804
+ }
5805
+ },
5806
+ "size": {
5807
+ "$type": "dimension",
5808
+ "$value": {
5809
+ "value": 0.375,
5810
+ "unit": "rem"
5811
+ },
5812
+ "$description": "Overlay scrollbar size",
5813
+ "$extensions": {
5814
+ "md.flood": {
5815
+ "status": "experimental",
5816
+ "visibility": "public",
5817
+ "owner": "foundations",
5818
+ "since": "0.2.3",
5819
+ "usage": {
5820
+ "allowed": [
5821
+ "Overlay scrollbar size"
5822
+ ],
5823
+ "avoid": []
5824
+ }
5825
+ }
5826
+ }
5827
+ }
5828
+ },
5637
5829
  "size": {
5638
5830
  "choice": {
5639
5831
  "$type": "dimension",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flood-md/tokens",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Flood semantic design tokens and light/dark themes.",
6
6
  "license": "MIT",