@mrpelz/uikit-ish 0.0.0-stage → 7.8.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/components/action-sheet/main.d.ts +39 -0
- package/dist/components/action-sheet/main.d.ts.map +1 -0
- package/dist/components/action-sheet/main.js +35 -0
- package/dist/components/action-sheet/main.js.map +1 -0
- package/dist/components/action-sheet/props.d.ts +10 -0
- package/dist/components/action-sheet/props.d.ts.map +1 -0
- package/dist/components/action-sheet/props.js +2 -0
- package/dist/components/action-sheet/props.js.map +1 -0
- package/dist/components/action-sheet/style.css +8 -0
- package/dist/components/activity-view/main.d.ts +45 -0
- package/dist/components/activity-view/main.d.ts.map +1 -0
- package/dist/components/activity-view/main.js +64 -0
- package/dist/components/activity-view/main.js.map +1 -0
- package/dist/components/activity-view/props.d.ts +12 -0
- package/dist/components/activity-view/props.d.ts.map +1 -0
- package/dist/components/activity-view/props.js +2 -0
- package/dist/components/activity-view/props.js.map +1 -0
- package/dist/components/activity-view/style.css +209 -0
- package/dist/components/alert/main.d.ts +53 -0
- package/dist/components/alert/main.d.ts.map +1 -0
- package/dist/components/alert/main.js +57 -0
- package/dist/components/alert/main.js.map +1 -0
- package/dist/components/alert/props.d.ts +18 -0
- package/dist/components/alert/props.d.ts.map +1 -0
- package/dist/components/alert/props.js +2 -0
- package/dist/components/alert/props.js.map +1 -0
- package/dist/components/alert/style.css +205 -0
- package/dist/components/avatar/main.d.ts +20 -0
- package/dist/components/avatar/main.d.ts.map +1 -0
- package/dist/components/avatar/main.js +42 -0
- package/dist/components/avatar/main.js.map +1 -0
- package/dist/components/avatar/props.d.ts +18 -0
- package/dist/components/avatar/props.d.ts.map +1 -0
- package/dist/components/avatar/props.js +2 -0
- package/dist/components/avatar/props.js.map +1 -0
- package/dist/components/avatar/style.css +83 -0
- package/dist/components/badge/main.d.ts +12 -0
- package/dist/components/badge/main.d.ts.map +1 -0
- package/dist/components/badge/main.js +33 -0
- package/dist/components/badge/main.js.map +1 -0
- package/dist/components/badge/props.d.ts +20 -0
- package/dist/components/badge/props.d.ts.map +1 -0
- package/dist/components/badge/props.js +2 -0
- package/dist/components/badge/props.js.map +1 -0
- package/dist/components/badge/style.css +71 -0
- package/dist/components/button/main.d.ts +16 -0
- package/dist/components/button/main.d.ts.map +1 -0
- package/dist/components/button/main.js +64 -0
- package/dist/components/button/main.js.map +1 -0
- package/dist/components/button/props.d.ts +45 -0
- package/dist/components/button/props.d.ts.map +1 -0
- package/dist/components/button/props.js +2 -0
- package/dist/components/button/props.js.map +1 -0
- package/dist/components/button/style.css +338 -0
- package/dist/components/checkbox/main.d.ts +23 -0
- package/dist/components/checkbox/main.d.ts.map +1 -0
- package/dist/components/checkbox/main.js +43 -0
- package/dist/components/checkbox/main.js.map +1 -0
- package/dist/components/checkbox/props.d.ts +14 -0
- package/dist/components/checkbox/props.d.ts.map +1 -0
- package/dist/components/checkbox/props.js +2 -0
- package/dist/components/checkbox/props.js.map +1 -0
- package/dist/components/checkbox/style.css +73 -0
- package/dist/components/color-picker/main.d.ts +31 -0
- package/dist/components/color-picker/main.d.ts.map +1 -0
- package/dist/components/color-picker/main.js +356 -0
- package/dist/components/color-picker/main.js.map +1 -0
- package/dist/components/color-picker/props.d.ts +61 -0
- package/dist/components/color-picker/props.d.ts.map +1 -0
- package/dist/components/color-picker/props.js +2 -0
- package/dist/components/color-picker/props.js.map +1 -0
- package/dist/components/color-picker/style.css +374 -0
- package/dist/components/contextual-menu/main.d.ts +84 -0
- package/dist/components/contextual-menu/main.d.ts.map +1 -0
- package/dist/components/contextual-menu/main.js +255 -0
- package/dist/components/contextual-menu/main.js.map +1 -0
- package/dist/components/contextual-menu/props.d.ts +44 -0
- package/dist/components/contextual-menu/props.d.ts.map +1 -0
- package/dist/components/contextual-menu/props.js +2 -0
- package/dist/components/contextual-menu/props.js.map +1 -0
- package/dist/components/contextual-menu/style.css +80 -0
- package/dist/components/date-picker/main.d.ts +57 -0
- package/dist/components/date-picker/main.d.ts.map +1 -0
- package/dist/components/date-picker/main.js +770 -0
- package/dist/components/date-picker/main.js.map +1 -0
- package/dist/components/date-picker/props.d.ts +220 -0
- package/dist/components/date-picker/props.d.ts.map +1 -0
- package/dist/components/date-picker/props.js +2 -0
- package/dist/components/date-picker/props.js.map +1 -0
- package/dist/components/date-picker/style.css +446 -0
- package/dist/components/edit-menu/main.d.ts +71 -0
- package/dist/components/edit-menu/main.d.ts.map +1 -0
- package/dist/components/edit-menu/main.js +317 -0
- package/dist/components/edit-menu/main.js.map +1 -0
- package/dist/components/edit-menu/props.d.ts +21 -0
- package/dist/components/edit-menu/props.d.ts.map +1 -0
- package/dist/components/edit-menu/props.js +2 -0
- package/dist/components/edit-menu/props.js.map +1 -0
- package/dist/components/edit-menu/style.css +189 -0
- package/dist/components/form/main.d.ts +21 -0
- package/dist/components/form/main.d.ts.map +1 -0
- package/dist/components/form/main.js +32 -0
- package/dist/components/form/main.js.map +1 -0
- package/dist/components/form/props.d.ts +4 -0
- package/dist/components/form/props.d.ts.map +1 -0
- package/dist/components/form/props.js +2 -0
- package/dist/components/form/props.js.map +1 -0
- package/dist/components/form/style.css +9 -0
- package/dist/components/glass/main.d.ts +34 -0
- package/dist/components/glass/main.d.ts.map +1 -0
- package/dist/components/glass/main.js +157 -0
- package/dist/components/glass/main.js.map +1 -0
- package/dist/components/glass/props.d.ts +22 -0
- package/dist/components/glass/props.d.ts.map +1 -0
- package/dist/components/glass/props.js +2 -0
- package/dist/components/glass/props.js.map +1 -0
- package/dist/components/glass/style.css +488 -0
- package/dist/components/header/main.d.ts +15 -0
- package/dist/components/header/main.d.ts.map +1 -0
- package/dist/components/header/main.js +78 -0
- package/dist/components/header/main.js.map +1 -0
- package/dist/components/header/props.d.ts +16 -0
- package/dist/components/header/props.d.ts.map +1 -0
- package/dist/components/header/props.js +2 -0
- package/dist/components/header/props.js.map +1 -0
- package/dist/components/header/style.css +119 -0
- package/dist/components/index.d.ts +38 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +45 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/layout/main.d.ts +15 -0
- package/dist/components/layout/main.d.ts.map +1 -0
- package/dist/components/layout/main.js +241 -0
- package/dist/components/layout/main.js.map +1 -0
- package/dist/components/layout/props.d.ts +52 -0
- package/dist/components/layout/props.d.ts.map +1 -0
- package/dist/components/layout/props.js +2 -0
- package/dist/components/layout/props.js.map +1 -0
- package/dist/components/layout/style.css +208 -0
- package/dist/components/list/main.d.ts +104 -0
- package/dist/components/list/main.d.ts.map +1 -0
- package/dist/components/list/main.js +1553 -0
- package/dist/components/list/main.js.map +1 -0
- package/dist/components/list/props.d.ts +178 -0
- package/dist/components/list/props.d.ts.map +1 -0
- package/dist/components/list/props.js +2 -0
- package/dist/components/list/props.js.map +1 -0
- package/dist/components/list/style.css +1689 -0
- package/dist/components/menu/main.d.ts +119 -0
- package/dist/components/menu/main.d.ts.map +1 -0
- package/dist/components/menu/main.js +487 -0
- package/dist/components/menu/main.js.map +1 -0
- package/dist/components/menu/props.d.ts +54 -0
- package/dist/components/menu/props.d.ts.map +1 -0
- package/dist/components/menu/props.js +2 -0
- package/dist/components/menu/props.js.map +1 -0
- package/dist/components/menu/style.css +446 -0
- package/dist/components/navigation/main.d.ts +9 -0
- package/dist/components/navigation/main.d.ts.map +1 -0
- package/dist/components/navigation/main.js +201 -0
- package/dist/components/navigation/main.js.map +1 -0
- package/dist/components/navigation/props.d.ts +16 -0
- package/dist/components/navigation/props.d.ts.map +1 -0
- package/dist/components/navigation/props.js +2 -0
- package/dist/components/navigation/props.js.map +1 -0
- package/dist/components/navigation/style.css +83 -0
- package/dist/components/page/main.d.ts +9 -0
- package/dist/components/page/main.d.ts.map +1 -0
- package/dist/components/page/main.js +20 -0
- package/dist/components/page/main.js.map +1 -0
- package/dist/components/page/props.d.ts +10 -0
- package/dist/components/page/props.d.ts.map +1 -0
- package/dist/components/page/props.js +2 -0
- package/dist/components/page/props.js.map +1 -0
- package/dist/components/page/style.css +19 -0
- package/dist/components/page-control/main.d.ts +13 -0
- package/dist/components/page-control/main.d.ts.map +1 -0
- package/dist/components/page-control/main.js +138 -0
- package/dist/components/page-control/main.js.map +1 -0
- package/dist/components/page-control/props.d.ts +36 -0
- package/dist/components/page-control/props.d.ts.map +1 -0
- package/dist/components/page-control/props.js +2 -0
- package/dist/components/page-control/props.js.map +1 -0
- package/dist/components/page-control/style.css +111 -0
- package/dist/components/popover/main.d.ts +34 -0
- package/dist/components/popover/main.d.ts.map +1 -0
- package/dist/components/popover/main.js +232 -0
- package/dist/components/popover/main.js.map +1 -0
- package/dist/components/popover/props.d.ts +23 -0
- package/dist/components/popover/props.d.ts.map +1 -0
- package/dist/components/popover/props.js +2 -0
- package/dist/components/popover/props.js.map +1 -0
- package/dist/components/popover/style.css +160 -0
- package/dist/components/progress/main.d.ts +31 -0
- package/dist/components/progress/main.d.ts.map +1 -0
- package/dist/components/progress/main.js +77 -0
- package/dist/components/progress/main.js.map +1 -0
- package/dist/components/progress/props.d.ts +56 -0
- package/dist/components/progress/props.d.ts.map +1 -0
- package/dist/components/progress/props.js +2 -0
- package/dist/components/progress/props.js.map +1 -0
- package/dist/components/progress/style.css +264 -0
- package/dist/components/roll/main.d.ts +18 -0
- package/dist/components/roll/main.d.ts.map +1 -0
- package/dist/components/roll/main.js +463 -0
- package/dist/components/roll/main.js.map +1 -0
- package/dist/components/roll/props.d.ts +58 -0
- package/dist/components/roll/props.d.ts.map +1 -0
- package/dist/components/roll/props.js +2 -0
- package/dist/components/roll/props.js.map +1 -0
- package/dist/components/roll/style.css +173 -0
- package/dist/components/segmented/main.d.ts +17 -0
- package/dist/components/segmented/main.d.ts.map +1 -0
- package/dist/components/segmented/main.js +151 -0
- package/dist/components/segmented/main.js.map +1 -0
- package/dist/components/segmented/props.d.ts +16 -0
- package/dist/components/segmented/props.d.ts.map +1 -0
- package/dist/components/segmented/props.js +2 -0
- package/dist/components/segmented/props.js.map +1 -0
- package/dist/components/segmented/style.css +428 -0
- package/dist/components/sheet/main.d.ts +32 -0
- package/dist/components/sheet/main.d.ts.map +1 -0
- package/dist/components/sheet/main.js +101 -0
- package/dist/components/sheet/main.js.map +1 -0
- package/dist/components/sheet/props.d.ts +11 -0
- package/dist/components/sheet/props.d.ts.map +1 -0
- package/dist/components/sheet/props.js +2 -0
- package/dist/components/sheet/props.js.map +1 -0
- package/dist/components/sheet/style.css +125 -0
- package/dist/components/sidebar/main.d.ts +15 -0
- package/dist/components/sidebar/main.d.ts.map +1 -0
- package/dist/components/sidebar/main.js +42 -0
- package/dist/components/sidebar/main.js.map +1 -0
- package/dist/components/sidebar/props.d.ts +5 -0
- package/dist/components/sidebar/props.d.ts.map +1 -0
- package/dist/components/sidebar/props.js +2 -0
- package/dist/components/sidebar/props.js.map +1 -0
- package/dist/components/sidebar/style.css +94 -0
- package/dist/components/slider/main.d.ts +35 -0
- package/dist/components/slider/main.d.ts.map +1 -0
- package/dist/components/slider/main.js +153 -0
- package/dist/components/slider/main.js.map +1 -0
- package/dist/components/slider/props.d.ts +56 -0
- package/dist/components/slider/props.d.ts.map +1 -0
- package/dist/components/slider/props.js +2 -0
- package/dist/components/slider/props.js.map +1 -0
- package/dist/components/slider/style.css +345 -0
- package/dist/components/stepper/main.d.ts +22 -0
- package/dist/components/stepper/main.d.ts.map +1 -0
- package/dist/components/stepper/main.js +56 -0
- package/dist/components/stepper/main.js.map +1 -0
- package/dist/components/stepper/props.d.ts +10 -0
- package/dist/components/stepper/props.d.ts.map +1 -0
- package/dist/components/stepper/props.js +2 -0
- package/dist/components/stepper/props.js.map +1 -0
- package/dist/components/stepper/style.css +115 -0
- package/dist/components/switch/main.d.ts +14 -0
- package/dist/components/switch/main.d.ts.map +1 -0
- package/dist/components/switch/main.js +143 -0
- package/dist/components/switch/main.js.map +1 -0
- package/dist/components/switch/props.d.ts +34 -0
- package/dist/components/switch/props.d.ts.map +1 -0
- package/dist/components/switch/props.js +2 -0
- package/dist/components/switch/props.js.map +1 -0
- package/dist/components/switch/style.css +168 -0
- package/dist/components/symbol/main.d.ts +8 -0
- package/dist/components/symbol/main.d.ts.map +1 -0
- package/dist/components/symbol/main.js +32 -0
- package/dist/components/symbol/main.js.map +1 -0
- package/dist/components/symbol/props.d.ts +10 -0
- package/dist/components/symbol/props.d.ts.map +1 -0
- package/dist/components/symbol/props.js +2 -0
- package/dist/components/symbol/props.js.map +1 -0
- package/dist/components/symbol/style.css +26 -0
- package/dist/components/tab-bar/main.d.ts +39 -0
- package/dist/components/tab-bar/main.d.ts.map +1 -0
- package/dist/components/tab-bar/main.js +1133 -0
- package/dist/components/tab-bar/main.js.map +1 -0
- package/dist/components/tab-bar/props.d.ts +152 -0
- package/dist/components/tab-bar/props.d.ts.map +1 -0
- package/dist/components/tab-bar/props.js +2 -0
- package/dist/components/tab-bar/props.js.map +1 -0
- package/dist/components/tab-bar/style.css +936 -0
- package/dist/components/text-field/main.d.ts +28 -0
- package/dist/components/text-field/main.d.ts.map +1 -0
- package/dist/components/text-field/main.js +105 -0
- package/dist/components/text-field/main.js.map +1 -0
- package/dist/components/text-field/props.d.ts +3 -0
- package/dist/components/text-field/props.d.ts.map +1 -0
- package/dist/components/text-field/props.js +2 -0
- package/dist/components/text-field/props.js.map +1 -0
- package/dist/components/text-field/style.css +230 -0
- package/dist/components/toolbar/main.d.ts +37 -0
- package/dist/components/toolbar/main.d.ts.map +1 -0
- package/dist/components/toolbar/main.js +142 -0
- package/dist/components/toolbar/main.js.map +1 -0
- package/dist/components/toolbar/props.d.ts +46 -0
- package/dist/components/toolbar/props.d.ts.map +1 -0
- package/dist/components/toolbar/props.js +2 -0
- package/dist/components/toolbar/props.js.map +1 -0
- package/dist/components/toolbar/style.css +210 -0
- package/dist/components/tooltip/main.d.ts +29 -0
- package/dist/components/tooltip/main.d.ts.map +1 -0
- package/dist/components/tooltip/main.js +37 -0
- package/dist/components/tooltip/main.js.map +1 -0
- package/dist/components/tooltip/props.d.ts +11 -0
- package/dist/components/tooltip/props.d.ts.map +1 -0
- package/dist/components/tooltip/props.js +2 -0
- package/dist/components/tooltip/props.js.map +1 -0
- package/dist/components/tooltip/style.css +29 -0
- package/dist/components/typography/main.d.ts +8 -0
- package/dist/components/typography/main.d.ts.map +1 -0
- package/dist/components/typography/main.js +21 -0
- package/dist/components/typography/main.js.map +1 -0
- package/dist/components/typography/props.d.ts +35 -0
- package/dist/components/typography/props.d.ts.map +1 -0
- package/dist/components/typography/props.js +2 -0
- package/dist/components/typography/props.js.map +1 -0
- package/dist/components/typography/style.css +719 -0
- package/dist/components/utils/main.d.ts +114 -0
- package/dist/components/utils/main.d.ts.map +1 -0
- package/dist/components/utils/main.js +431 -0
- package/dist/components/utils/main.js.map +1 -0
- package/dist/components/utils/props.d.ts +52 -0
- package/dist/components/utils/props.d.ts.map +1 -0
- package/dist/components/utils/props.js +2 -0
- package/dist/components/utils/props.js.map +1 -0
- package/dist/components/utils/style.css +77 -0
- package/dist/components/viewport/main.d.ts +32 -0
- package/dist/components/viewport/main.d.ts.map +1 -0
- package/dist/components/viewport/main.js +197 -0
- package/dist/components/viewport/main.js.map +1 -0
- package/dist/components/viewport/props.d.ts +71 -0
- package/dist/components/viewport/props.d.ts.map +1 -0
- package/dist/components/viewport/props.js +2 -0
- package/dist/components/viewport/props.js.map +1 -0
- package/dist/components/viewport/style.css +112 -0
- package/dist/main.d.ts +4 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +3 -0
- package/dist/main.js.map +1 -0
- package/dist/styles.css +567 -0
- package/dist/styles.d.ts +25 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +39 -0
- package/dist/styles.js.map +1 -0
- package/package.json +55 -4
- package/README.md +0 -3
package/dist/styles.css
ADDED
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Base UI Styled: global styles (tokens: iOS colors, text styles, glass,
|
|
3
|
+
* shadows; pressed states, color schemes, accessibility), see styles.tsx.
|
|
4
|
+
*/
|
|
5
|
+
@layer uikit-ish {
|
|
6
|
+
:root {
|
|
7
|
+
color-scheme: light dark;
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Grayscale antialiasing, as on iOS (Framework7 components/app/app.less;
|
|
11
|
+
* Figma renders text the same way)
|
|
12
|
+
*/
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* iOS text styles (UIFont.TextStyle) at the default Dynamic Type size
|
|
17
|
+
* (Large): size, line height and tracking (see components/typography/main.tsx
|
|
18
|
+
* for all sizes), weight and emphasized weight
|
|
19
|
+
*
|
|
20
|
+
* Source: Apple iOS 26 Figma (Typography: Text styles, Dynamic Type)
|
|
21
|
+
*/
|
|
22
|
+
--font-ios-large-title-size: 34px;
|
|
23
|
+
--font-ios-large-title-line-height: 41px;
|
|
24
|
+
--font-ios-large-title-tracking: 0.4px;
|
|
25
|
+
--font-ios-title1-size: 28px;
|
|
26
|
+
--font-ios-title1-line-height: 34px;
|
|
27
|
+
--font-ios-title1-tracking: 0.38px;
|
|
28
|
+
--font-ios-title2-size: 22px;
|
|
29
|
+
--font-ios-title2-line-height: 28px;
|
|
30
|
+
--font-ios-title2-tracking: -0.26px;
|
|
31
|
+
--font-ios-title3-size: 20px;
|
|
32
|
+
--font-ios-title3-line-height: 25px;
|
|
33
|
+
--font-ios-title3-tracking: -0.45px;
|
|
34
|
+
--font-ios-headline-size: 17px;
|
|
35
|
+
--font-ios-headline-line-height: 22px;
|
|
36
|
+
--font-ios-headline-tracking: -0.43px;
|
|
37
|
+
--font-ios-body-size: 17px;
|
|
38
|
+
--font-ios-body-line-height: 22px;
|
|
39
|
+
--font-ios-body-tracking: -0.43px;
|
|
40
|
+
--font-ios-callout-size: 16px;
|
|
41
|
+
--font-ios-callout-line-height: 21px;
|
|
42
|
+
--font-ios-callout-tracking: -0.31px;
|
|
43
|
+
--font-ios-subheadline-size: 15px;
|
|
44
|
+
--font-ios-subheadline-line-height: 20px;
|
|
45
|
+
--font-ios-subheadline-tracking: -0.23px;
|
|
46
|
+
--font-ios-footnote-size: 13px;
|
|
47
|
+
--font-ios-footnote-line-height: 18px;
|
|
48
|
+
--font-ios-footnote-tracking: -0.08px;
|
|
49
|
+
--font-ios-caption1-size: 12px;
|
|
50
|
+
--font-ios-caption1-line-height: 16px;
|
|
51
|
+
--font-ios-caption1-tracking: 0px;
|
|
52
|
+
--font-ios-caption2-size: 11px;
|
|
53
|
+
--font-ios-caption2-line-height: 13px;
|
|
54
|
+
--font-ios-caption2-tracking: 0.06px;
|
|
55
|
+
--font-ios-large-title-weight: 400;
|
|
56
|
+
--font-ios-large-title-weight-emphasized: 700;
|
|
57
|
+
--font-ios-title1-weight: 400;
|
|
58
|
+
--font-ios-title1-weight-emphasized: 700;
|
|
59
|
+
--font-ios-title2-weight: 400;
|
|
60
|
+
--font-ios-title2-weight-emphasized: 700;
|
|
61
|
+
--font-ios-title3-weight: 400;
|
|
62
|
+
--font-ios-title3-weight-emphasized: 590;
|
|
63
|
+
--font-ios-headline-weight: 590;
|
|
64
|
+
--font-ios-headline-weight-emphasized: 590;
|
|
65
|
+
--font-ios-body-weight: 400;
|
|
66
|
+
--font-ios-body-weight-emphasized: 590;
|
|
67
|
+
--font-ios-callout-weight: 400;
|
|
68
|
+
--font-ios-callout-weight-emphasized: 590;
|
|
69
|
+
--font-ios-subheadline-weight: 400;
|
|
70
|
+
--font-ios-subheadline-weight-emphasized: 590;
|
|
71
|
+
--font-ios-footnote-weight: 400;
|
|
72
|
+
--font-ios-footnote-weight-emphasized: 590;
|
|
73
|
+
--font-ios-caption1-weight: 400;
|
|
74
|
+
--font-ios-caption1-weight-emphasized: 510;
|
|
75
|
+
--font-ios-caption2-weight: 400;
|
|
76
|
+
--font-ios-caption2-weight-emphasized: 590;
|
|
77
|
+
|
|
78
|
+
/*
|
|
79
|
+
* App tint (UIKit tintColor), systemBlue unless overridden
|
|
80
|
+
*
|
|
81
|
+
* tint/shade: HSL lightness +/- 8% (Konsta UI color-utils/ios-colors.js)
|
|
82
|
+
*/
|
|
83
|
+
--color-ios-primary: var(--color-ios-system-blue);
|
|
84
|
+
--color-ios-primary-tint: hsl(
|
|
85
|
+
from var(--color-ios-primary) h s calc(l + 8)
|
|
86
|
+
);
|
|
87
|
+
--color-ios-primary-shade: hsl(
|
|
88
|
+
from var(--color-ios-primary) h s calc(l - 8)
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
/*
|
|
92
|
+
* iOS semantic colors (UIKit UIColor)
|
|
93
|
+
*
|
|
94
|
+
* - system grays and system colors: Apple Human Interface Guidelines,
|
|
95
|
+
* Color (June 9, 2025 values), incl. increased contrast variants
|
|
96
|
+
* - labels, separators, link, fills, backgrounds: UIKit values (not
|
|
97
|
+
* published in the HIG); label and tertiary-system-fill match the
|
|
98
|
+
* iOS 26 Figma, system-fill (light) is the Figma value (switch and
|
|
99
|
+
* slider tracks: 120 120 120, UIKit: 120 120 128)
|
|
100
|
+
*/
|
|
101
|
+
--color-ios-label: light-dark(rgb(0 0 0), rgb(255 255 255));
|
|
102
|
+
--color-ios-secondary-label: light-dark(
|
|
103
|
+
rgb(60 60 67 / 60%),
|
|
104
|
+
rgb(235 235 245 / 60%)
|
|
105
|
+
);
|
|
106
|
+
--color-ios-tertiary-label: light-dark(
|
|
107
|
+
rgb(60 60 67 / 30%),
|
|
108
|
+
rgb(235 235 245 / 30%)
|
|
109
|
+
);
|
|
110
|
+
--color-ios-quaternary-label: light-dark(
|
|
111
|
+
rgb(60 60 67 / 18%),
|
|
112
|
+
rgb(235 235 245 / 16%)
|
|
113
|
+
);
|
|
114
|
+
--color-ios-placeholder-text: light-dark(
|
|
115
|
+
rgb(60 60 67 / 30%),
|
|
116
|
+
rgb(235 235 245 / 30%)
|
|
117
|
+
);
|
|
118
|
+
--color-ios-separator: light-dark(rgb(60 60 67 / 29%), rgb(84 84 88 / 60%));
|
|
119
|
+
--color-ios-opaque-separator: light-dark(rgb(198 198 200), rgb(56 56 58));
|
|
120
|
+
|
|
121
|
+
/* Figma “Segmented Control”: the selected segment (no UIKit name). */
|
|
122
|
+
--color-ios-segmented-selection: light-dark(
|
|
123
|
+
rgb(255 255 255),
|
|
124
|
+
rgb(108 108 113)
|
|
125
|
+
);
|
|
126
|
+
--color-ios-link: light-dark(rgb(0 122 255), rgb(9 132 255));
|
|
127
|
+
--color-ios-system-fill: light-dark(
|
|
128
|
+
rgb(120 120 120 / 20%),
|
|
129
|
+
rgb(120 120 128 / 36%)
|
|
130
|
+
);
|
|
131
|
+
--color-ios-secondary-system-fill: light-dark(
|
|
132
|
+
rgb(120 120 128 / 16%),
|
|
133
|
+
rgb(120 120 128 / 32%)
|
|
134
|
+
);
|
|
135
|
+
--color-ios-tertiary-system-fill: light-dark(
|
|
136
|
+
rgb(118 118 128 / 12%),
|
|
137
|
+
rgb(118 118 128 / 24%)
|
|
138
|
+
);
|
|
139
|
+
--color-ios-quaternary-system-fill: light-dark(
|
|
140
|
+
rgb(116 116 128 / 8%),
|
|
141
|
+
rgb(118 118 128 / 18%)
|
|
142
|
+
);
|
|
143
|
+
--color-ios-system-background: light-dark(rgb(255 255 255), rgb(0 0 0));
|
|
144
|
+
--color-ios-secondary-system-background: light-dark(
|
|
145
|
+
rgb(242 242 247),
|
|
146
|
+
rgb(28 28 30)
|
|
147
|
+
);
|
|
148
|
+
--color-ios-tertiary-system-background: light-dark(
|
|
149
|
+
rgb(255 255 255),
|
|
150
|
+
rgb(44 44 46)
|
|
151
|
+
);
|
|
152
|
+
--color-ios-system-grouped-background: light-dark(
|
|
153
|
+
rgb(242 242 247),
|
|
154
|
+
rgb(0 0 0)
|
|
155
|
+
);
|
|
156
|
+
--color-ios-secondary-system-grouped-background: light-dark(
|
|
157
|
+
rgb(255 255 255),
|
|
158
|
+
rgb(28 28 30)
|
|
159
|
+
);
|
|
160
|
+
--color-ios-tertiary-system-grouped-background: light-dark(
|
|
161
|
+
rgb(242 242 247),
|
|
162
|
+
rgb(44 44 46)
|
|
163
|
+
);
|
|
164
|
+
--color-ios-system-gray: light-dark(rgb(142 142 147), rgb(142 142 147));
|
|
165
|
+
--color-ios-system-gray2: light-dark(rgb(174 174 178), rgb(99 99 102));
|
|
166
|
+
--color-ios-system-gray3: light-dark(rgb(199 199 204), rgb(72 72 74));
|
|
167
|
+
--color-ios-system-gray4: light-dark(rgb(209 209 214), rgb(58 58 60));
|
|
168
|
+
--color-ios-system-gray5: light-dark(rgb(229 229 234), rgb(44 44 46));
|
|
169
|
+
--color-ios-system-gray6: light-dark(rgb(242 242 247), rgb(28 28 30));
|
|
170
|
+
--color-ios-system-red: light-dark(rgb(255 56 60), rgb(255 66 69));
|
|
171
|
+
--color-ios-system-orange: light-dark(rgb(255 141 40), rgb(255 146 48));
|
|
172
|
+
--color-ios-system-yellow: light-dark(rgb(255 204 0), rgb(255 214 0));
|
|
173
|
+
--color-ios-system-green: light-dark(rgb(52 199 89), rgb(48 209 88));
|
|
174
|
+
--color-ios-system-mint: light-dark(rgb(0 200 179), rgb(0 218 195));
|
|
175
|
+
--color-ios-system-teal: light-dark(rgb(0 195 208), rgb(0 210 224));
|
|
176
|
+
--color-ios-system-cyan: light-dark(rgb(0 192 232), rgb(60 211 254));
|
|
177
|
+
--color-ios-system-blue: light-dark(rgb(0 136 255), rgb(0 145 255));
|
|
178
|
+
--color-ios-system-indigo: light-dark(rgb(97 85 245), rgb(109 124 255));
|
|
179
|
+
--color-ios-system-purple: light-dark(rgb(203 48 224), rgb(219 52 242));
|
|
180
|
+
--color-ios-system-pink: light-dark(rgb(255 45 85), rgb(255 55 95));
|
|
181
|
+
--color-ios-system-brown: light-dark(rgb(172 127 94), rgb(183 138 102));
|
|
182
|
+
|
|
183
|
+
@media (prefers-contrast: more) {
|
|
184
|
+
--color-ios-system-gray: light-dark(rgb(108 108 112), rgb(174 174 178));
|
|
185
|
+
--color-ios-system-gray2: light-dark(rgb(142 142 147), rgb(124 124 128));
|
|
186
|
+
--color-ios-system-gray3: light-dark(rgb(174 174 178), rgb(84 84 86));
|
|
187
|
+
--color-ios-system-gray4: light-dark(rgb(188 188 192), rgb(68 68 70));
|
|
188
|
+
--color-ios-system-gray5: light-dark(rgb(216 216 220), rgb(54 54 56));
|
|
189
|
+
--color-ios-system-gray6: light-dark(rgb(235 235 240), rgb(36 36 38));
|
|
190
|
+
--color-ios-system-red: light-dark(rgb(233 21 45), rgb(255 97 101));
|
|
191
|
+
--color-ios-system-orange: light-dark(rgb(197 83 0), rgb(255 160 86));
|
|
192
|
+
--color-ios-system-yellow: light-dark(rgb(161 106 0), rgb(254 223 67));
|
|
193
|
+
--color-ios-system-green: light-dark(rgb(0 137 50), rgb(74 217 104));
|
|
194
|
+
--color-ios-system-mint: light-dark(rgb(0 133 117), rgb(84 223 203));
|
|
195
|
+
--color-ios-system-teal: light-dark(rgb(0 129 152), rgb(59 221 236));
|
|
196
|
+
--color-ios-system-cyan: light-dark(rgb(0 126 174), rgb(109 217 255));
|
|
197
|
+
--color-ios-system-blue: light-dark(rgb(30 110 244), rgb(92 184 255));
|
|
198
|
+
--color-ios-system-indigo: light-dark(rgb(86 74 222), rgb(167 170 255));
|
|
199
|
+
--color-ios-system-purple: light-dark(rgb(176 47 194), rgb(234 141 255));
|
|
200
|
+
--color-ios-system-pink: light-dark(rgb(231 18 77), rgb(255 138 196));
|
|
201
|
+
--color-ios-system-brown: light-dark(rgb(149 109 81), rgb(219 166 121));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/*
|
|
205
|
+
* iOS glass materials for dim and bright content behind the glass
|
|
206
|
+
*
|
|
207
|
+
* Source: Apple iOS 26 Figma (Tab Bar, BG Context Dim/Bright):
|
|
208
|
+
* - blur: “Blur” layer (backdrop-filter: blur(20px), opacity 0.67)
|
|
209
|
+
* - fill: “Fill” layer: its three fills (bottom to top) with their blend
|
|
210
|
+
* modes, at the layer's opacity, drawn without blending as a backdrop
|
|
211
|
+
* filter and a flat color. The fills are linear in each channel of the
|
|
212
|
+
* backdrop b: bright (color-dodge #333, #fff 50%, multiply #F7F7F7):
|
|
213
|
+
* min(1.25b, 1) × 0.969 at 50% over #F7F7F7, exactly; dim (color-burn
|
|
214
|
+
* #CCC 50%, #000 60%, #FFF 6%, opacity 0.67): 0.04 + 0.58b, through
|
|
215
|
+
* its values over black and white (within 0.025 in between). WebKit
|
|
216
|
+
* blends an element only with what is on its compositing layer: the
|
|
217
|
+
* fills, above the blur's backdrop filter (a layer of its own), would
|
|
218
|
+
* blend with nothing (bright glass turns gray).
|
|
219
|
+
* - content/selection: vibrant tab content and selection (no UIKit
|
|
220
|
+
* semantic equivalent); the selection (#121212 plus-lighter, #ededed
|
|
221
|
+
* plus-darker) is drawn as its unblended equivalent (white, black at
|
|
222
|
+
* 7%): WebKit blends an element composited on a layer of its own
|
|
223
|
+
* (e.g. while it moves) with that layer's transparent backdrop only,
|
|
224
|
+
* drawing the dim selection nearly black, as with menus (see below)
|
|
225
|
+
* - content-disabled, content-prominent(-disabled): labels of glass
|
|
226
|
+
* buttons (Figma “_Label - Text/Symbol”, Default and Preferred, State
|
|
227
|
+
* Default/Disabled); the prominent disabled bright label is #262626 at
|
|
228
|
+
* layer opacity 0.5; the prominent dim label is white as rendered in
|
|
229
|
+
* “Button - Liquid Glass” (“_Label - Preferred - Dim” says #BFBFBF)
|
|
230
|
+
* The “Glass Effect” layer (a Figma layer effect, not part of the CSS
|
|
231
|
+
* export) is emulated as in Framework7 components/app/app-vars.less
|
|
232
|
+
* (--f7-glass-shadow, light for bright, dark for dim) and Konsta UI
|
|
233
|
+
* styles/glass.css (--shadow-ios-light-glass, --shadow-ios-dark-glass).
|
|
234
|
+
* - lens: pressed selection, Framework7 components/toolbar/toolbar-vars.less
|
|
235
|
+
* (--f7-tabbar-link-highlight-active-bg-color) and app-vars.less
|
|
236
|
+
* (--f7-glass-shadow-thumb), light for bright, dark for dim; see
|
|
237
|
+
* --glass-ios-lens-* below
|
|
238
|
+
* plus-darker is drawn as multiply, which darkens by a similar amount
|
|
239
|
+
* for these light colors: Chromium doesn't support it, and WebKit draws
|
|
240
|
+
* it black where the glass is composited separately (a layer of its
|
|
241
|
+
* own, e.g. while transitioning).
|
|
242
|
+
*/
|
|
243
|
+
--glass-ios-dim-blur: rgb(255 255 255 / 5%);
|
|
244
|
+
--glass-ios-dim-fill: rgb(255 255 255 / 4%);
|
|
245
|
+
--glass-ios-dim-fill-filter: brightness(0.606);
|
|
246
|
+
--glass-ios-dim-content: #bfbfbf;
|
|
247
|
+
--glass-ios-dim-content-blend: plus-lighter;
|
|
248
|
+
--glass-ios-dim-content-disabled: #262626;
|
|
249
|
+
--glass-ios-dim-content-prominent: #fff;
|
|
250
|
+
--glass-ios-dim-content-prominent-blend: plus-lighter;
|
|
251
|
+
--glass-ios-dim-content-prominent-disabled: #262626;
|
|
252
|
+
--glass-ios-dim-selection: rgb(255 255 255 / 7%);
|
|
253
|
+
--glass-ios-dim-lens: rgb(255 255 255 / 10%);
|
|
254
|
+
--glass-ios-dim-lens-shadow:
|
|
255
|
+
inset 3px 3px 0 -3.5px rgb(255 255 255),
|
|
256
|
+
inset -3px -3px 0 -3.5px rgb(255 255 255),
|
|
257
|
+
inset -0.5px -0.5px 0 rgb(255 255 255 / 50%),
|
|
258
|
+
inset 0.5px 0.5px 0 rgb(255 255 255 / 10%),
|
|
259
|
+
inset -3px 3px 0 -3.5px rgb(255 255 255 / 25%),
|
|
260
|
+
inset 0 -5px 0 -3.5px rgb(255 255 255 / 25%),
|
|
261
|
+
inset 0 -5px 5px rgb(255 255 255 / 25%);
|
|
262
|
+
--glass-ios-dim-shadow:
|
|
263
|
+
inset -2px -2px 0.5px -2.5px rgb(255 255 255 / 40%),
|
|
264
|
+
inset 3px 3px 0.5px -3.5px rgb(255 255 255 / 40%),
|
|
265
|
+
inset 2px 2px 0.5px -2px #262626, inset -2px -2px 0.5px -2px #262626,
|
|
266
|
+
inset 0 0 5px 1px #141414, inset 0 0 0 1px rgb(255 255 255 / 15%),
|
|
267
|
+
inset 0 0 10px 0 rgb(255 255 255 / 7.5%),
|
|
268
|
+
inset 0 0 24px 0 rgb(255 255 255 / 5%), 0 0 25px 0 rgb(0 0 0 / 15%);
|
|
269
|
+
--glass-ios-bright-blur: rgb(0 0 0 / 4%);
|
|
270
|
+
--glass-ios-bright-fill: rgb(247 247 247 / 50%);
|
|
271
|
+
--glass-ios-bright-fill-filter: brightness(1.25) brightness(0.969);
|
|
272
|
+
--glass-ios-bright-content: #404040;
|
|
273
|
+
--glass-ios-bright-content-blend: multiply;
|
|
274
|
+
--glass-ios-bright-content-disabled: #d9d9d9;
|
|
275
|
+
--glass-ios-bright-content-prominent: #fff;
|
|
276
|
+
--glass-ios-bright-content-prominent-blend: plus-lighter;
|
|
277
|
+
--glass-ios-bright-content-prominent-disabled: rgb(38 38 38 / 50%);
|
|
278
|
+
--glass-ios-bright-selection: rgb(0 0 0 / 7%);
|
|
279
|
+
--glass-ios-bright-lens: rgb(0 0 0 / 5%);
|
|
280
|
+
--glass-ios-bright-lens-shadow:
|
|
281
|
+
inset -3px -3px 0 -3.5px rgb(255 255 255),
|
|
282
|
+
inset 3px 3px 0 -3.5px rgb(255 255 255),
|
|
283
|
+
inset 0 0 0 0.5px rgb(255 255 255 / 50%), inset 3px 3px 10px -2px #eee,
|
|
284
|
+
inset -3px -3px 10px -2px #eee, inset 0 0 5px 1px #fff;
|
|
285
|
+
--glass-ios-bright-shadow:
|
|
286
|
+
inset -1px -1px 0 -0.5px rgb(255 255 255),
|
|
287
|
+
inset 1px 1px 0 -0.5px rgb(255 255 255), inset 3px 3px 10px -3px #ddd,
|
|
288
|
+
inset -3px -3px 10px -3px #ddd, inset 0 0 5px 1px #fff,
|
|
289
|
+
inset 0 0 0 0.5px rgb(0 0 0 / 25%), inset 0 0 24px 0 rgb(0 0 0 / 10%),
|
|
290
|
+
0 0 25px 0 rgb(0 0 0 / 20%);
|
|
291
|
+
|
|
292
|
+
/*
|
|
293
|
+
* Glass over a background of the app's (a picture, colors; not a plain
|
|
294
|
+
* page), bright or dim (user): bright's and dim's content, lenses and
|
|
295
|
+
* selections, but floating over it (not Figma's glass over white or
|
|
296
|
+
* black): a translucent fill, a thin light rim (brighter at its top
|
|
297
|
+
* start), and a soft shadow outside, without bright's white halo or
|
|
298
|
+
* dim's dark inner bands.
|
|
299
|
+
*/
|
|
300
|
+
--glass-ios-background-bright-blur: rgb(0 0 0 / 4%);
|
|
301
|
+
--glass-ios-background-bright-fill: rgb(255 255 255 / 30%);
|
|
302
|
+
--glass-ios-background-bright-fill-filter: brightness(1.1);
|
|
303
|
+
--glass-ios-background-bright-content: var(--glass-ios-bright-content);
|
|
304
|
+
--glass-ios-background-bright-content-blend: var(
|
|
305
|
+
--glass-ios-bright-content-blend
|
|
306
|
+
);
|
|
307
|
+
--glass-ios-background-bright-content-disabled: var(
|
|
308
|
+
--glass-ios-bright-content-disabled
|
|
309
|
+
);
|
|
310
|
+
--glass-ios-background-bright-content-prominent: var(
|
|
311
|
+
--glass-ios-bright-content-prominent
|
|
312
|
+
);
|
|
313
|
+
--glass-ios-background-bright-content-prominent-blend: var(
|
|
314
|
+
--glass-ios-bright-content-prominent-blend
|
|
315
|
+
);
|
|
316
|
+
--glass-ios-background-bright-content-prominent-disabled: var(
|
|
317
|
+
--glass-ios-bright-content-prominent-disabled
|
|
318
|
+
);
|
|
319
|
+
--glass-ios-background-bright-selection: var(--glass-ios-bright-selection);
|
|
320
|
+
--glass-ios-background-bright-lens: var(--glass-ios-bright-lens);
|
|
321
|
+
--glass-ios-background-bright-lens-shadow: var(
|
|
322
|
+
--glass-ios-bright-lens-shadow
|
|
323
|
+
);
|
|
324
|
+
--glass-ios-background-bright-shadow:
|
|
325
|
+
inset 0 0 0 0.5px rgb(255 255 255 / 50%),
|
|
326
|
+
inset 1px 1px 0 -0.5px rgb(255 255 255 / 80%),
|
|
327
|
+
inset -1px -1px 0 -0.5px rgb(255 255 255 / 40%),
|
|
328
|
+
0 2px 12px rgb(0 0 0 / 12%);
|
|
329
|
+
--glass-ios-background-dim-blur: rgb(0 0 0 / 10%);
|
|
330
|
+
--glass-ios-background-dim-fill: rgb(0 0 0 / 20%);
|
|
331
|
+
--glass-ios-background-dim-fill-filter: brightness(0.8);
|
|
332
|
+
--glass-ios-background-dim-content: var(--glass-ios-dim-content);
|
|
333
|
+
--glass-ios-background-dim-content-blend: var(
|
|
334
|
+
--glass-ios-dim-content-blend
|
|
335
|
+
);
|
|
336
|
+
--glass-ios-background-dim-content-disabled: var(
|
|
337
|
+
--glass-ios-dim-content-disabled
|
|
338
|
+
);
|
|
339
|
+
--glass-ios-background-dim-content-prominent: var(
|
|
340
|
+
--glass-ios-dim-content-prominent
|
|
341
|
+
);
|
|
342
|
+
--glass-ios-background-dim-content-prominent-blend: var(
|
|
343
|
+
--glass-ios-dim-content-prominent-blend
|
|
344
|
+
);
|
|
345
|
+
--glass-ios-background-dim-content-prominent-disabled: var(
|
|
346
|
+
--glass-ios-dim-content-prominent-disabled
|
|
347
|
+
);
|
|
348
|
+
--glass-ios-background-dim-selection: var(--glass-ios-dim-selection);
|
|
349
|
+
--glass-ios-background-dim-lens: var(--glass-ios-dim-lens);
|
|
350
|
+
--glass-ios-background-dim-lens-shadow: var(--glass-ios-dim-lens-shadow);
|
|
351
|
+
--glass-ios-background-dim-shadow:
|
|
352
|
+
inset 0 0 0 0.5px rgb(255 255 255 / 25%),
|
|
353
|
+
inset 1px 1px 0 -0.5px rgb(255 255 255 / 50%),
|
|
354
|
+
inset -1px -1px 0 -0.5px rgb(255 255 255 / 20%),
|
|
355
|
+
0 2px 12px rgb(0 0 0 / 25%);
|
|
356
|
+
|
|
357
|
+
/*
|
|
358
|
+
* iOS “Medium” glass material (menus, edit menus), by color scheme
|
|
359
|
+
*
|
|
360
|
+
* Source: Apple iOS 26 Figma (Menus: “Liquid Glass - Medium”, Mode=Light
|
|
361
|
+
* and Dark) for the content on it:
|
|
362
|
+
* - content, content-secondary (subtitles, shortcuts), content-disabled
|
|
363
|
+
* (also section titles), with their blend mode
|
|
364
|
+
* - separator (menus), divider (between edit menu actions)
|
|
365
|
+
* - selection: highlighted items, open submenu (iPad), quick actions,
|
|
366
|
+
* edit menu “more”: #ededed plus-darker, #121212 plus-lighter, drawn
|
|
367
|
+
* as their equivalent on white or black without blending (black,
|
|
368
|
+
* white at 7%): the popup's glass (a backdrop filter) isolates its
|
|
369
|
+
* content's blend modes from what is behind it, so a blended selection
|
|
370
|
+
* would blend with the glass' translucent background only, turning
|
|
371
|
+
* nearly opaque, and show lighter or darker than the glass around it
|
|
372
|
+
* depending on the content behind
|
|
373
|
+
* The material itself is Framework7's popover glass (popover-ios.less
|
|
374
|
+
* .popover-inner, mixins.less .ios-glass()): a flat background
|
|
375
|
+
* (app-vars.less --f7-glass-bg-color) with backdrop blur and the glass
|
|
376
|
+
* shadow (bright in light, dim in dark mode, as above). Figma's blended
|
|
377
|
+
* fills would need the backdrop, which popups (positioned by a
|
|
378
|
+
* transform, animated) isolate them from.
|
|
379
|
+
*/
|
|
380
|
+
--glass-ios-medium-light-background: rgb(255 255 255 / 75%);
|
|
381
|
+
--glass-ios-medium-light-content: #333;
|
|
382
|
+
--glass-ios-medium-light-content-blend: multiply;
|
|
383
|
+
--glass-ios-medium-light-content-secondary: #999;
|
|
384
|
+
--glass-ios-medium-light-content-disabled: #bfbfbf;
|
|
385
|
+
--glass-ios-medium-light-separator: #e6e6e6;
|
|
386
|
+
--glass-ios-medium-light-divider: #ccc;
|
|
387
|
+
--glass-ios-medium-light-selection: rgb(0 0 0 / 7%);
|
|
388
|
+
--glass-ios-medium-dark-background: rgb(50 50 50 / 50%);
|
|
389
|
+
--glass-ios-medium-dark-content: #fff;
|
|
390
|
+
--glass-ios-medium-dark-content-blend: plus-lighter;
|
|
391
|
+
--glass-ios-medium-dark-content-secondary: #999;
|
|
392
|
+
--glass-ios-medium-dark-content-disabled: #404040;
|
|
393
|
+
--glass-ios-medium-dark-separator: #1a1a1a;
|
|
394
|
+
--glass-ios-medium-dark-divider: #333;
|
|
395
|
+
--glass-ios-medium-dark-selection: rgb(255 255 255 / 7%);
|
|
396
|
+
|
|
397
|
+
/*
|
|
398
|
+
* Tinted glass (prominent glass buttons), the same in both contexts
|
|
399
|
+
*
|
|
400
|
+
* Source: Apple iOS 26 Figma (Button - Liquid Glass, Tinted=True): “Tint”
|
|
401
|
+
* layer: the tint (#0091FF in both contexts, also where the system tint
|
|
402
|
+
* is #0088FF), then its fills (bottom to top) with their blend modes, and
|
|
403
|
+
* its shadow. plus-darker is drawn as multiply, as above.
|
|
404
|
+
*/
|
|
405
|
+
--glass-ios-tint: rgb(0 145 255);
|
|
406
|
+
--glass-ios-tint-base: rgb(255 255 255 / 50%);
|
|
407
|
+
--glass-ios-tint-saturation: #fff;
|
|
408
|
+
--glass-ios-tint-overlay: #999;
|
|
409
|
+
--glass-ios-tint-blend: multiply;
|
|
410
|
+
--glass-ios-tint-shadow:
|
|
411
|
+
0 0 2px rgb(0 0 0 / 10%), 0 1px 8px rgb(0 0 0 / 12%);
|
|
412
|
+
|
|
413
|
+
/*
|
|
414
|
+
* Glass lens: the pressed state of knobs and selections (switch, slider,
|
|
415
|
+
* tab bar), scaled up and drawn as clear glass
|
|
416
|
+
*
|
|
417
|
+
* Source: Framework7 toggle-ios.less, range-ios.less, toolbar-ios.less
|
|
418
|
+
* (scale 1.4, 300ms transitions); the shadow follows the color scheme
|
|
419
|
+
* where no dim/bright context applies.
|
|
420
|
+
* content-scale: content on a lens (glass buttons) scales up less than
|
|
421
|
+
* the lens (seen on a device; the value is an estimate).
|
|
422
|
+
*/
|
|
423
|
+
--glass-ios-lens-scale: 1.4;
|
|
424
|
+
--glass-ios-lens-content-scale: 1.2;
|
|
425
|
+
--glass-ios-lens-duration: 300ms;
|
|
426
|
+
--glass-ios-lens-shadow: var(--glass-ios-bright-lens-shadow);
|
|
427
|
+
|
|
428
|
+
/*
|
|
429
|
+
* List separators, blended with the list's background (no UIKit semantic
|
|
430
|
+
* equivalent: UIKit's separator is rgb(60 60 67 / 29%))
|
|
431
|
+
*
|
|
432
|
+
* Source: Apple iOS 26 Figma (Lists and tables: “_Separator”, Mode=Light
|
|
433
|
+
* and Dark): #E6E6E6 plus-darker (as multiply), #1A1A1A plus-lighter,
|
|
434
|
+
* drawn as their unblended equivalent (black at 10%: exact; white at
|
|
435
|
+
* 11%: exact on dark rows, #1C1C1E): WebKit blends rows on a layer of
|
|
436
|
+
* their own (e.g. while swiped) with nothing, as the glass above.
|
|
437
|
+
*/
|
|
438
|
+
--color-ios-list-separator: light-dark(
|
|
439
|
+
rgb(0 0 0 / 10%),
|
|
440
|
+
rgb(255 255 255 / 11%)
|
|
441
|
+
);
|
|
442
|
+
|
|
443
|
+
/*
|
|
444
|
+
* Section titles of plain lists, opaque (Figma gives none: a blur only)
|
|
445
|
+
*
|
|
446
|
+
* Source: Framework7 components/contacts-list/contacts-list-vars.less
|
|
447
|
+
* (--f7-contacts-list-title-bg-color)
|
|
448
|
+
*/
|
|
449
|
+
--color-ios-list-section-title-background: light-dark(#f7f7f7, #323234);
|
|
450
|
+
|
|
451
|
+
/*
|
|
452
|
+
* The shadow of a row being reordered, lifted (Figma gives none)
|
|
453
|
+
*
|
|
454
|
+
* Source: Framework7 components/sortable/sortable-vars.less
|
|
455
|
+
* (--f7-sortable-sorting-item-box-shadow)
|
|
456
|
+
*/
|
|
457
|
+
--shadow-ios-list-reorder: 0 2px 8px rgb(0 0 0 / 60%);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
:root[data-color-scheme='light'] {
|
|
461
|
+
color-scheme: light;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
:root[data-color-scheme='dark'] {
|
|
465
|
+
color-scheme: dark;
|
|
466
|
+
|
|
467
|
+
--glass-ios-lens-shadow: var(--glass-ios-dim-lens-shadow);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
@media (prefers-color-scheme: dark) {
|
|
471
|
+
:root:not([data-color-scheme='light']) {
|
|
472
|
+
--glass-ios-lens-shadow: var(--glass-ios-dim-lens-shadow);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* Accessibility: glass made opaque (see opaqueGlass). */
|
|
477
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
478
|
+
:root {
|
|
479
|
+
--glass-ios-bright-blur: transparent;
|
|
480
|
+
--glass-ios-bright-fill: rgb(247 247 247);
|
|
481
|
+
--glass-ios-bright-fill-filter: none;
|
|
482
|
+
--glass-ios-dim-blur: transparent;
|
|
483
|
+
--glass-ios-dim-fill: rgb(28 28 30);
|
|
484
|
+
--glass-ios-dim-fill-filter: none;
|
|
485
|
+
--glass-ios-background-bright-blur: transparent;
|
|
486
|
+
--glass-ios-background-bright-fill: rgb(247 247 247);
|
|
487
|
+
--glass-ios-background-bright-fill-filter: none;
|
|
488
|
+
--glass-ios-background-dim-blur: transparent;
|
|
489
|
+
--glass-ios-background-dim-fill: rgb(28 28 30);
|
|
490
|
+
--glass-ios-background-dim-fill-filter: none;
|
|
491
|
+
--glass-ios-medium-light-background: rgb(246 246 246);
|
|
492
|
+
--glass-ios-medium-dark-background: rgb(30 30 30);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
@media (prefers-contrast: more) {
|
|
497
|
+
:root {
|
|
498
|
+
--glass-ios-bright-blur: transparent;
|
|
499
|
+
--glass-ios-bright-fill: rgb(247 247 247);
|
|
500
|
+
--glass-ios-bright-fill-filter: none;
|
|
501
|
+
--glass-ios-dim-blur: transparent;
|
|
502
|
+
--glass-ios-dim-fill: rgb(28 28 30);
|
|
503
|
+
--glass-ios-dim-fill-filter: none;
|
|
504
|
+
--glass-ios-background-bright-blur: transparent;
|
|
505
|
+
--glass-ios-background-bright-fill: rgb(247 247 247);
|
|
506
|
+
--glass-ios-background-bright-fill-filter: none;
|
|
507
|
+
--glass-ios-background-dim-blur: transparent;
|
|
508
|
+
--glass-ios-background-dim-fill: rgb(28 28 30);
|
|
509
|
+
--glass-ios-background-dim-fill-filter: none;
|
|
510
|
+
--glass-ios-medium-light-background: rgb(246 246 246);
|
|
511
|
+
--glass-ios-medium-dark-background: rgb(30 30 30);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
@media (forced-colors: active) {
|
|
516
|
+
:root {
|
|
517
|
+
--glass-ios-bright-blur: transparent;
|
|
518
|
+
--glass-ios-bright-fill: rgb(247 247 247);
|
|
519
|
+
--glass-ios-bright-fill-filter: none;
|
|
520
|
+
--glass-ios-dim-blur: transparent;
|
|
521
|
+
--glass-ios-dim-fill: rgb(28 28 30);
|
|
522
|
+
--glass-ios-dim-fill-filter: none;
|
|
523
|
+
--glass-ios-background-bright-blur: transparent;
|
|
524
|
+
--glass-ios-background-bright-fill: rgb(247 247 247);
|
|
525
|
+
--glass-ios-background-bright-fill-filter: none;
|
|
526
|
+
--glass-ios-background-dim-blur: transparent;
|
|
527
|
+
--glass-ios-background-dim-fill: rgb(28 28 30);
|
|
528
|
+
--glass-ios-background-dim-fill-filter: none;
|
|
529
|
+
--glass-ios-medium-light-background: rgb(246 246 246);
|
|
530
|
+
--glass-ios-medium-dark-background: rgb(30 30 30);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/* Lengths that transition as such, so styles computed from them follow
|
|
536
|
+
every frame (e.g. a clamp): the tab bar's lens (see tab-bar.tsx). */
|
|
537
|
+
@property --uikit-tab-bar-lens-height {
|
|
538
|
+
inherits: true;
|
|
539
|
+
initial-value: 0;
|
|
540
|
+
syntax: '<length>';
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@property --uikit-tab-bar-lens-width {
|
|
544
|
+
inherits: true;
|
|
545
|
+
initial-value: 0;
|
|
546
|
+
syntax: '<length>';
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
@property --uikit-tab-bar-lens-x {
|
|
550
|
+
inherits: true;
|
|
551
|
+
initial-value: 0;
|
|
552
|
+
syntax: '<length>';
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
@property --uikit-tab-bar-lens-y {
|
|
556
|
+
inherits: true;
|
|
557
|
+
initial-value: 0;
|
|
558
|
+
syntax: '<length>';
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/* A navigation's transition between two pages (see `Navigation`): 0
|
|
562
|
+
the upper page shown, 1 the one under it. */
|
|
563
|
+
@property --uikit-navigation-progress {
|
|
564
|
+
inherits: true;
|
|
565
|
+
initial-value: 0;
|
|
566
|
+
syntax: '<number>';
|
|
567
|
+
}
|
package/dist/styles.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import './styles.css';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
3
|
+
import { ColorScheme } from './components/utils/main.js';
|
|
4
|
+
/**
|
|
5
|
+
* Registers an empty, passive `touchstart` listener on the document while
|
|
6
|
+
* mounted: iOS Safari applies `:active` (the components' pressed states) only
|
|
7
|
+
* to elements with such a listener on themselves or an ancestor.
|
|
8
|
+
*/
|
|
9
|
+
export declare const useTouchActive: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* Forces a color scheme on the whole document while mounted (sets
|
|
12
|
+
* `colorSchemeAttribute` on the root element), or follows the browser's
|
|
13
|
+
* preference (`undefined`).
|
|
14
|
+
*/
|
|
15
|
+
export declare const useColorScheme: (scheme?: ColorScheme) => void;
|
|
16
|
+
export type StylesProps = {
|
|
17
|
+
/** Forces a color scheme, or follows the browser's preference. */
|
|
18
|
+
colorScheme?: ColorScheme;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Pressed states on touch and an optionally forced color scheme (the global
|
|
22
|
+
* styles, styles.css, are imported with this module).
|
|
23
|
+
*/
|
|
24
|
+
export declare const Styles: FunctionComponent<StylesProps>;
|
|
25
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,iBAAiB,EAAa,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,WAAW,EAAwB,MAAM,4BAA4B,CAAC;AAI/E;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAO,IAKjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,WAAW,KAAG,IAQrD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,kEAAkE;IAClE,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,iBAAiB,CAAC,WAAW,CAKjD,CAAC"}
|
package/dist/styles.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import './styles.css';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import { colorSchemeAttribute } from './components/utils/main.js';
|
|
4
|
+
const noop = () => undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Registers an empty, passive `touchstart` listener on the document while
|
|
7
|
+
* mounted: iOS Safari applies `:active` (the components' pressed states) only
|
|
8
|
+
* to elements with such a listener on themselves or an ancestor.
|
|
9
|
+
*/
|
|
10
|
+
export const useTouchActive = () => {
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
document.addEventListener('touchstart', noop, { passive: true });
|
|
13
|
+
return () => document.removeEventListener('touchstart', noop);
|
|
14
|
+
}, []);
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Forces a color scheme on the whole document while mounted (sets
|
|
18
|
+
* `colorSchemeAttribute` on the root element), or follows the browser's
|
|
19
|
+
* preference (`undefined`).
|
|
20
|
+
*/
|
|
21
|
+
export const useColorScheme = (scheme) => {
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
if (!scheme)
|
|
24
|
+
return undefined;
|
|
25
|
+
const root = document.documentElement;
|
|
26
|
+
root.setAttribute(colorSchemeAttribute, scheme);
|
|
27
|
+
return () => root.removeAttribute(colorSchemeAttribute);
|
|
28
|
+
}, [scheme]);
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Pressed states on touch and an optionally forced color scheme (the global
|
|
32
|
+
* styles, styles.css, are imported with this module).
|
|
33
|
+
*/
|
|
34
|
+
export const Styles = ({ colorScheme }) => {
|
|
35
|
+
useTouchActive();
|
|
36
|
+
useColorScheme(colorScheme);
|
|
37
|
+
return null;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAqB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAe,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAE/E,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAE7B;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAS,EAAE;IACvC,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QACjE,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAoB,EAAQ,EAAE;IAC3D,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM;YAAE,OAAO,SAAS,CAAC;QAE9B,MAAM,IAAI,GAAG,QAAQ,CAAC,eAAe,CAAC;QACtC,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;QAChD,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAC1D,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACf,CAAC,CAAC;AAOF;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAmC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;IACxE,cAAc,EAAE,CAAC;IACjB,cAAc,CAAC,WAAW,CAAC,CAAC;IAE5B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|