@1money/component-ui 0.0.1 → 0.0.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/es/components/Accordion/style/index.d.ts +1 -1
- package/es/components/Accordion/style/index.js +1 -1
- package/es/components/Alert/style/css.js +1 -1
- package/es/components/Alert/style/index.d.ts +1 -1
- package/es/components/Alert/style/index.js +2 -2
- package/es/components/Button/style/index.d.ts +1 -1
- package/es/components/Button/style/index.js +1 -1
- package/es/components/Calendar/style/index.d.ts +1 -1
- package/es/components/Calendar/style/index.js +1 -1
- package/es/components/Carousel/style/index.d.ts +1 -1
- package/es/components/Carousel/style/index.js +1 -1
- package/es/components/Checkbox/style/index.d.ts +1 -1
- package/es/components/Checkbox/style/index.js +1 -1
- package/es/components/CoachMark/style/css.js +3 -3
- package/es/components/CoachMark/style/index.d.ts +1 -1
- package/es/components/CoachMark/style/index.js +4 -4
- package/es/components/Copy/style/index.d.ts +1 -1
- package/es/components/Copy/style/index.js +1 -1
- package/es/components/Divider/style/index.d.ts +1 -1
- package/es/components/Divider/style/index.js +1 -1
- package/es/components/Drawer/style/index.d.ts +1 -1
- package/es/components/Drawer/style/index.js +1 -1
- package/es/components/Dropdown/style/css.js +1 -1
- package/es/components/Dropdown/style/index.d.ts +1 -1
- package/es/components/Dropdown/style/index.js +2 -2
- package/es/components/Empty/style/css.js +1 -1
- package/es/components/Empty/style/index.d.ts +1 -1
- package/es/components/Empty/style/index.js +2 -2
- package/es/components/Flex/style/index.d.ts +1 -1
- package/es/components/Flex/style/index.js +1 -1
- package/es/components/Form/style/index.d.ts +1 -1
- package/es/components/Form/style/index.js +1 -1
- package/es/components/Grid/style/index.d.ts +1 -1
- package/es/components/Grid/style/index.js +1 -1
- package/es/components/Icons/style/index.d.ts +1 -1
- package/es/components/Icons/style/index.js +1 -1
- package/es/components/Input/Amount/style/index.d.ts +1 -1
- package/es/components/Input/Amount/style/index.js +1 -1
- package/es/components/Input/style/index.d.ts +6 -6
- package/es/components/Input/style/index.js +6 -6
- package/es/components/Modal/style/index.d.ts +1 -1
- package/es/components/Modal/style/index.js +1 -1
- package/es/components/Navigation/style/index.d.ts +2 -2
- package/es/components/Navigation/style/index.js +2 -2
- package/es/components/Notification/style/index.d.ts +1 -1
- package/es/components/Notification/style/index.js +1 -1
- package/es/components/Pagination/style/index.d.ts +1 -1
- package/es/components/Pagination/style/index.js +1 -1
- package/es/components/Popconfirm/style/css.js +3 -3
- package/es/components/Popconfirm/style/index.d.ts +1 -1
- package/es/components/Popconfirm/style/index.js +4 -4
- package/es/components/ProForm/style/index.d.ts +1 -1
- package/es/components/ProForm/style/index.js +1 -1
- package/es/components/Progress/style/index.d.ts +1 -1
- package/es/components/Progress/style/index.js +1 -1
- package/es/components/Radio/style/css.js +1 -1
- package/es/components/Radio/style/index.d.ts +1 -1
- package/es/components/Radio/style/index.js +2 -2
- package/es/components/Segment/style/index.d.ts +1 -1
- package/es/components/Segment/style/index.js +1 -1
- package/es/components/Select/style/css.js +2 -2
- package/es/components/Select/style/index.d.ts +1 -1
- package/es/components/Select/style/index.js +3 -3
- package/es/components/Skeleton/style/index.d.ts +1 -1
- package/es/components/Skeleton/style/index.js +1 -1
- package/es/components/Slider/style/index.d.ts +1 -1
- package/es/components/Slider/style/index.js +1 -1
- package/es/components/Space/style/index.d.ts +1 -1
- package/es/components/Space/style/index.js +1 -1
- package/es/components/Spinner/style/index.d.ts +1 -1
- package/es/components/Spinner/style/index.js +1 -1
- package/es/components/Step/style/index.d.ts +1 -1
- package/es/components/Step/style/index.js +1 -1
- package/es/components/Switch/style/css.js +1 -1
- package/es/components/Switch/style/index.d.ts +1 -1
- package/es/components/Switch/style/index.js +2 -2
- package/es/components/Table/style/css.js +8 -8
- package/es/components/Table/style/index.d.ts +1 -1
- package/es/components/Table/style/index.js +9 -9
- package/es/components/Tabs/style/index.d.ts +1 -1
- package/es/components/Tabs/style/index.js +1 -1
- package/es/components/Tag/style/index.d.ts +1 -1
- package/es/components/Tag/style/index.js +1 -1
- package/es/components/Tooltip/style/index.d.ts +1 -1
- package/es/components/Tooltip/style/index.js +1 -1
- package/es/components/Trigger/style/index.d.ts +1 -1
- package/es/components/Trigger/style/index.js +1 -1
- package/es/components/Typography/style/css.js +2 -2
- package/es/components/Typography/style/index.d.ts +1 -1
- package/es/components/Typography/style/index.js +3 -3
- package/es/components/Upload/style/index.d.ts +2 -2
- package/es/components/Upload/style/index.js +2 -2
- package/es/components/VirtualList/style/index.d.ts +1 -1
- package/es/components/VirtualList/style/index.js +1 -1
- package/es/index.css +1 -1
- package/lib/components/Accordion/style/index.d.ts +1 -1
- package/lib/components/Accordion/style/index.js +1 -1
- package/lib/components/Alert/style/css.js +1 -1
- package/lib/components/Alert/style/index.d.ts +1 -1
- package/lib/components/Alert/style/index.js +2 -2
- package/lib/components/Button/style/index.d.ts +1 -1
- package/lib/components/Button/style/index.js +1 -1
- package/lib/components/Calendar/style/index.d.ts +1 -1
- package/lib/components/Calendar/style/index.js +1 -1
- package/lib/components/Carousel/style/index.d.ts +1 -1
- package/lib/components/Carousel/style/index.js +1 -1
- package/lib/components/Checkbox/style/index.d.ts +1 -1
- package/lib/components/Checkbox/style/index.js +1 -1
- package/lib/components/CoachMark/style/css.js +3 -3
- package/lib/components/CoachMark/style/index.d.ts +1 -1
- package/lib/components/CoachMark/style/index.js +4 -4
- package/lib/components/Copy/style/index.d.ts +1 -1
- package/lib/components/Copy/style/index.js +1 -1
- package/lib/components/Divider/style/index.d.ts +1 -1
- package/lib/components/Divider/style/index.js +1 -1
- package/lib/components/Drawer/style/index.d.ts +1 -1
- package/lib/components/Drawer/style/index.js +1 -1
- package/lib/components/Dropdown/style/css.js +1 -1
- package/lib/components/Dropdown/style/index.d.ts +1 -1
- package/lib/components/Dropdown/style/index.js +2 -2
- package/lib/components/Empty/style/css.js +1 -1
- package/lib/components/Empty/style/index.d.ts +1 -1
- package/lib/components/Empty/style/index.js +2 -2
- package/lib/components/Flex/style/index.d.ts +1 -1
- package/lib/components/Flex/style/index.js +1 -1
- package/lib/components/Form/style/index.d.ts +1 -1
- package/lib/components/Form/style/index.js +1 -1
- package/lib/components/Grid/style/index.d.ts +1 -1
- package/lib/components/Grid/style/index.js +1 -1
- package/lib/components/Icons/style/index.d.ts +1 -1
- package/lib/components/Icons/style/index.js +1 -1
- package/lib/components/Input/Amount/style/index.d.ts +1 -1
- package/lib/components/Input/Amount/style/index.js +1 -1
- package/lib/components/Input/style/index.d.ts +6 -6
- package/lib/components/Input/style/index.js +6 -6
- package/lib/components/Modal/style/index.d.ts +1 -1
- package/lib/components/Modal/style/index.js +1 -1
- package/lib/components/Navigation/style/index.d.ts +2 -2
- package/lib/components/Navigation/style/index.js +2 -2
- package/lib/components/Notification/style/index.d.ts +1 -1
- package/lib/components/Notification/style/index.js +1 -1
- package/lib/components/Pagination/style/index.d.ts +1 -1
- package/lib/components/Pagination/style/index.js +1 -1
- package/lib/components/Popconfirm/style/css.js +3 -3
- package/lib/components/Popconfirm/style/index.d.ts +1 -1
- package/lib/components/Popconfirm/style/index.js +4 -4
- package/lib/components/ProForm/style/index.d.ts +1 -1
- package/lib/components/ProForm/style/index.js +1 -1
- package/lib/components/Progress/style/index.d.ts +1 -1
- package/lib/components/Progress/style/index.js +1 -1
- package/lib/components/Radio/style/css.js +1 -1
- package/lib/components/Radio/style/index.d.ts +1 -1
- package/lib/components/Radio/style/index.js +2 -2
- package/lib/components/Segment/style/index.d.ts +1 -1
- package/lib/components/Segment/style/index.js +1 -1
- package/lib/components/Select/style/css.js +2 -2
- package/lib/components/Select/style/index.d.ts +1 -1
- package/lib/components/Select/style/index.js +3 -3
- package/lib/components/Skeleton/style/index.d.ts +1 -1
- package/lib/components/Skeleton/style/index.js +1 -1
- package/lib/components/Slider/style/index.d.ts +1 -1
- package/lib/components/Slider/style/index.js +1 -1
- package/lib/components/Space/style/index.d.ts +1 -1
- package/lib/components/Space/style/index.js +1 -1
- package/lib/components/Spinner/style/index.d.ts +1 -1
- package/lib/components/Spinner/style/index.js +1 -1
- package/lib/components/Step/style/index.d.ts +1 -1
- package/lib/components/Step/style/index.js +1 -1
- package/lib/components/Switch/style/css.js +1 -1
- package/lib/components/Switch/style/index.d.ts +1 -1
- package/lib/components/Switch/style/index.js +2 -2
- package/lib/components/Table/style/css.js +8 -8
- package/lib/components/Table/style/index.d.ts +1 -1
- package/lib/components/Table/style/index.js +9 -9
- package/lib/components/Tabs/style/index.d.ts +1 -1
- package/lib/components/Tabs/style/index.js +1 -1
- package/lib/components/Tag/style/index.d.ts +1 -1
- package/lib/components/Tag/style/index.js +1 -1
- package/lib/components/Tooltip/style/index.d.ts +1 -1
- package/lib/components/Tooltip/style/index.js +1 -1
- package/lib/components/Trigger/style/index.d.ts +1 -1
- package/lib/components/Trigger/style/index.js +1 -1
- package/lib/components/Typography/style/css.js +2 -2
- package/lib/components/Typography/style/index.d.ts +1 -1
- package/lib/components/Typography/style/index.js +3 -3
- package/lib/components/Upload/style/index.d.ts +2 -2
- package/lib/components/Upload/style/index.js +2 -2
- package/lib/components/VirtualList/style/index.d.ts +1 -1
- package/lib/components/VirtualList/style/index.js +1 -1
- package/lib/index.css +1 -1
- package/package.json +1 -1
- package/es/components/Accordion/style/Accordion.scss +0 -127
- package/es/components/Alert/style/Alert.scss +0 -89
- package/es/components/Button/style/Button.scss +0 -190
- package/es/components/Calendar/style/Calendar.scss +0 -377
- package/es/components/Carousel/style/Carousel.scss +0 -63
- package/es/components/Checkbox/style/Checkbox.scss +0 -235
- package/es/components/CoachMark/style/CoachMark.scss +0 -176
- package/es/components/Copy/style/Copy.scss +0 -35
- package/es/components/Divider/style/Divider.scss +0 -149
- package/es/components/Drawer/style/Drawer.scss +0 -163
- package/es/components/Dropdown/style/Dropdown.scss +0 -2
- package/es/components/Empty/style/Empty.scss +0 -53
- package/es/components/Flex/style/Flex.scss +0 -70
- package/es/components/Form/style/Form.scss +0 -57
- package/es/components/Grid/style/Grid.scss +0 -184
- package/es/components/Icons/style/Icons.scss +0 -85
- package/es/components/Input/Amount/style/Amount.scss +0 -89
- package/es/components/Input/FieldShell/FieldShell.scss +0 -62
- package/es/components/Input/Input/Input.scss +0 -131
- package/es/components/Input/OTP/OTP.scss +0 -75
- package/es/components/Input/TextArea/TextArea.scss +0 -87
- package/es/components/Input/Trade/Trade.scss +0 -184
- package/es/components/Modal/style/Modal.scss +0 -254
- package/es/components/Navigation/style/Nav.scss +0 -174
- package/es/components/Navigation/style/Navigation.scss +0 -443
- package/es/components/Notification/style/Notification.scss +0 -200
- package/es/components/Pagination/style/Pagination.scss +0 -95
- package/es/components/Popconfirm/style/Popconfirm.scss +0 -264
- package/es/components/ProForm/style/ProForm.scss +0 -118
- package/es/components/Progress/style/Progress.scss +0 -120
- package/es/components/Radio/style/Radio.scss +0 -431
- package/es/components/Segment/style/Segment.scss +0 -80
- package/es/components/Select/style/Select.scss +0 -480
- package/es/components/Skeleton/style/Skeleton.scss +0 -47
- package/es/components/Slider/style/Slider.scss +0 -182
- package/es/components/Space/style/Space.scss +0 -40
- package/es/components/Spinner/style/Spinner.scss +0 -90
- package/es/components/Step/style/Step.scss +0 -91
- package/es/components/Switch/style/Switch.scss +0 -126
- package/es/components/Table/style/Table.scss +0 -376
- package/es/components/Tabs/style/Tabs.scss +0 -100
- package/es/components/Tag/style/Tag.scss +0 -103
- package/es/components/Tooltip/style/Tooltip.scss +0 -95
- package/es/components/Trigger/style/Trigger.scss +0 -18
- package/es/components/Typography/style/Typography.scss +0 -132
- package/es/components/Upload/style/Upload.scss +0 -44
- package/es/components/Upload/style/UploadFileBar.scss +0 -94
- package/es/components/VirtualList/style/VirtualList.scss +0 -5
- package/es/styles/_api.scss +0 -5
- package/es/styles/_settings.scss +0 -5
- package/es/styles/index.scss +0 -2
- package/es/styles/public/_index.scss +0 -2
- package/es/styles/public/_system.scss +0 -1
- package/es/styles/public/_theme.scss +0 -3
- package/es/styles/recipes/_index.scss +0 -1
- package/es/styles/recipes/_variants.scss +0 -110
- package/es/styles/system/_index.scss +0 -4
- package/es/styles/system/_props.scss +0 -95
- package/es/styles/system/_public.scss +0 -5
- package/es/styles/system/_sx.scss +0 -81
- package/es/styles/theme/_breakpoints.scss +0 -95
- package/es/styles/theme/_functions.scss +0 -271
- package/es/styles/theme/_index.scss +0 -6
- package/es/styles/theme/_mixins.scss +0 -37
- package/es/styles/theme/_scales.scss +0 -29
- package/es/styles/theme/_values.scss +0 -68
- package/es/styles/tokens/_index.scss +0 -11
- package/es/styles/tokens/breakpoint/_index.scss +0 -2
- package/es/styles/tokens/breakpoint/_primitives.scss +0 -8
- package/es/styles/tokens/color/_index.scss +0 -3
- package/es/styles/tokens/color/_primitives.scss +0 -42
- package/es/styles/tokens/color/_semantic-color.scss +0 -172
- package/es/styles/tokens/opacity/_functions.scss +0 -13
- package/es/styles/tokens/opacity/_index.scss +0 -3
- package/es/styles/tokens/opacity/_primitives.scss +0 -12
- package/es/styles/tokens/radius/_index.scss +0 -2
- package/es/styles/tokens/radius/_primitives.scss +0 -11
- package/es/styles/tokens/shadow/_index.scss +0 -2
- package/es/styles/tokens/shadow/_primitives.scss +0 -7
- package/es/styles/tokens/sizing/_functions.scss +0 -17
- package/es/styles/tokens/sizing/_index.scss +0 -4
- package/es/styles/tokens/sizing/_primitives.scss +0 -12
- package/es/styles/tokens/sizing/_semantic-sizing.scss +0 -11
- package/es/styles/tokens/spacing/_functions.scss +0 -51
- package/es/styles/tokens/spacing/_index.scss +0 -4
- package/es/styles/tokens/spacing/_primitives.scss +0 -22
- package/es/styles/tokens/spacing/_semantic-spacing.scss +0 -22
- package/es/styles/tokens/typography/_functions.scss +0 -31
- package/es/styles/tokens/typography/_index.scss +0 -4
- package/es/styles/tokens/typography/_primitives.scss +0 -27
- package/es/styles/tokens/typography/_semantic-typography.scss +0 -216
- package/es/styles/utilities/_generator.scss +0 -55
- package/es/styles/utilities/_index.scss +0 -14
- package/lib/components/Accordion/style/Accordion.scss +0 -127
- package/lib/components/Alert/style/Alert.scss +0 -89
- package/lib/components/Button/style/Button.scss +0 -190
- package/lib/components/Calendar/style/Calendar.scss +0 -377
- package/lib/components/Carousel/style/Carousel.scss +0 -63
- package/lib/components/Checkbox/style/Checkbox.scss +0 -235
- package/lib/components/CoachMark/style/CoachMark.scss +0 -176
- package/lib/components/Copy/style/Copy.scss +0 -35
- package/lib/components/Divider/style/Divider.scss +0 -149
- package/lib/components/Drawer/style/Drawer.scss +0 -163
- package/lib/components/Dropdown/style/Dropdown.scss +0 -2
- package/lib/components/Empty/style/Empty.scss +0 -53
- package/lib/components/Flex/style/Flex.scss +0 -70
- package/lib/components/Form/style/Form.scss +0 -57
- package/lib/components/Grid/style/Grid.scss +0 -184
- package/lib/components/Icons/style/Icons.scss +0 -85
- package/lib/components/Input/Amount/style/Amount.scss +0 -89
- package/lib/components/Input/FieldShell/FieldShell.scss +0 -62
- package/lib/components/Input/Input/Input.scss +0 -131
- package/lib/components/Input/OTP/OTP.scss +0 -75
- package/lib/components/Input/TextArea/TextArea.scss +0 -87
- package/lib/components/Input/Trade/Trade.scss +0 -184
- package/lib/components/Modal/style/Modal.scss +0 -254
- package/lib/components/Navigation/style/Nav.scss +0 -174
- package/lib/components/Navigation/style/Navigation.scss +0 -443
- package/lib/components/Notification/style/Notification.scss +0 -200
- package/lib/components/Pagination/style/Pagination.scss +0 -95
- package/lib/components/Popconfirm/style/Popconfirm.scss +0 -264
- package/lib/components/ProForm/style/ProForm.scss +0 -118
- package/lib/components/Progress/style/Progress.scss +0 -120
- package/lib/components/Radio/style/Radio.scss +0 -431
- package/lib/components/Segment/style/Segment.scss +0 -80
- package/lib/components/Select/style/Select.scss +0 -480
- package/lib/components/Skeleton/style/Skeleton.scss +0 -47
- package/lib/components/Slider/style/Slider.scss +0 -182
- package/lib/components/Space/style/Space.scss +0 -40
- package/lib/components/Spinner/style/Spinner.scss +0 -90
- package/lib/components/Step/style/Step.scss +0 -91
- package/lib/components/Switch/style/Switch.scss +0 -126
- package/lib/components/Table/style/Table.scss +0 -376
- package/lib/components/Tabs/style/Tabs.scss +0 -100
- package/lib/components/Tag/style/Tag.scss +0 -103
- package/lib/components/Tooltip/style/Tooltip.scss +0 -95
- package/lib/components/Trigger/style/Trigger.scss +0 -18
- package/lib/components/Typography/style/Typography.scss +0 -132
- package/lib/components/Upload/style/Upload.scss +0 -44
- package/lib/components/Upload/style/UploadFileBar.scss +0 -94
- package/lib/components/VirtualList/style/VirtualList.scss +0 -5
- package/lib/styles/_api.scss +0 -5
- package/lib/styles/_settings.scss +0 -5
- package/lib/styles/index.scss +0 -2
- package/lib/styles/public/_index.scss +0 -2
- package/lib/styles/public/_system.scss +0 -1
- package/lib/styles/public/_theme.scss +0 -3
- package/lib/styles/recipes/_index.scss +0 -1
- package/lib/styles/recipes/_variants.scss +0 -110
- package/lib/styles/system/_index.scss +0 -4
- package/lib/styles/system/_props.scss +0 -95
- package/lib/styles/system/_public.scss +0 -5
- package/lib/styles/system/_sx.scss +0 -81
- package/lib/styles/theme/_breakpoints.scss +0 -95
- package/lib/styles/theme/_functions.scss +0 -271
- package/lib/styles/theme/_index.scss +0 -6
- package/lib/styles/theme/_mixins.scss +0 -37
- package/lib/styles/theme/_scales.scss +0 -29
- package/lib/styles/theme/_values.scss +0 -68
- package/lib/styles/tokens/_index.scss +0 -11
- package/lib/styles/tokens/breakpoint/_index.scss +0 -2
- package/lib/styles/tokens/breakpoint/_primitives.scss +0 -8
- package/lib/styles/tokens/color/_index.scss +0 -3
- package/lib/styles/tokens/color/_primitives.scss +0 -42
- package/lib/styles/tokens/color/_semantic-color.scss +0 -172
- package/lib/styles/tokens/opacity/_functions.scss +0 -13
- package/lib/styles/tokens/opacity/_index.scss +0 -3
- package/lib/styles/tokens/opacity/_primitives.scss +0 -12
- package/lib/styles/tokens/radius/_index.scss +0 -2
- package/lib/styles/tokens/radius/_primitives.scss +0 -11
- package/lib/styles/tokens/shadow/_index.scss +0 -2
- package/lib/styles/tokens/shadow/_primitives.scss +0 -7
- package/lib/styles/tokens/sizing/_functions.scss +0 -17
- package/lib/styles/tokens/sizing/_index.scss +0 -4
- package/lib/styles/tokens/sizing/_primitives.scss +0 -12
- package/lib/styles/tokens/sizing/_semantic-sizing.scss +0 -11
- package/lib/styles/tokens/spacing/_functions.scss +0 -51
- package/lib/styles/tokens/spacing/_index.scss +0 -4
- package/lib/styles/tokens/spacing/_primitives.scss +0 -22
- package/lib/styles/tokens/spacing/_semantic-spacing.scss +0 -22
- package/lib/styles/tokens/typography/_functions.scss +0 -31
- package/lib/styles/tokens/typography/_index.scss +0 -4
- package/lib/styles/tokens/typography/_primitives.scss +0 -27
- package/lib/styles/tokens/typography/_semantic-typography.scss +0 -216
- package/lib/styles/utilities/_generator.scss +0 -55
- package/lib/styles/utilities/_index.scss +0 -14
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// Theme domain mixins — public wrappers around theme-owned typography and breakpoints.
|
|
2
|
-
@use './breakpoints' as breakpoints;
|
|
3
|
-
@use './functions' as internal;
|
|
4
|
-
|
|
5
|
-
@mixin typography($category, $size, $strong: false) {
|
|
6
|
-
@include internal.om-typography($category, $size, $strong: $strong);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin up($bp-name) {
|
|
10
|
-
@include breakpoints.om-up($bp-name) {
|
|
11
|
-
@content;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin down($bp-name) {
|
|
16
|
-
@include breakpoints.om-down($bp-name) {
|
|
17
|
-
@content;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin between($min-bp, $max-bp) {
|
|
22
|
-
@include breakpoints.om-between($min-bp, $max-bp) {
|
|
23
|
-
@content;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@mixin only($bp-name) {
|
|
28
|
-
@include breakpoints.om-only($bp-name) {
|
|
29
|
-
@content;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@mixin respond($bp-name) {
|
|
34
|
-
@include breakpoints.om-respond($bp-name) {
|
|
35
|
-
@content;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Theme scales — aggregates token scales and defines system feature flags.
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use '../settings' as settings;
|
|
4
|
-
@use '../tokens' as tokens;
|
|
5
|
-
|
|
6
|
-
$om-sys-prefix: settings.$om-sys-prefix !default;
|
|
7
|
-
$om-sys-enable-spacing: true !default;
|
|
8
|
-
$om-sys-enable-layout: true !default;
|
|
9
|
-
$om-sys-enable-sizing: true !default;
|
|
10
|
-
$om-sys-enable-visual: true !default;
|
|
11
|
-
$om-sys-enable-color: true !default;
|
|
12
|
-
$om-spacing-resolved-scale: () !default;
|
|
13
|
-
|
|
14
|
-
@each $key, $mult in tokens.$om-spacing-scale {
|
|
15
|
-
$om-spacing-resolved-scale: map.merge($om-spacing-resolved-scale, ($key: tokens.om-spacing-token($key)));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
$om-theme-scales: (
|
|
19
|
-
spacing: $om-spacing-resolved-scale,
|
|
20
|
-
radius: tokens.$om-radius-scale,
|
|
21
|
-
shadow: tokens.$om-shadow-scale,
|
|
22
|
-
sizing: tokens.$om-sizing-scale,
|
|
23
|
-
component-height: tokens.$om-component-height-scale,
|
|
24
|
-
bg: tokens.$om-bg-scale,
|
|
25
|
-
text: tokens.$om-text-scale,
|
|
26
|
-
icon: tokens.$om-icon-scale,
|
|
27
|
-
border: tokens.$om-border-scale,
|
|
28
|
-
) !default;
|
|
29
|
-
$om-theme-css-var-scales: (spacing, radius, shadow, bg, text, icon, border, component-height) !default;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// Theme domain value API — stable token accessors exposed through the public facade.
|
|
2
|
-
@use 'sass:list';
|
|
3
|
-
@use './functions' as internal;
|
|
4
|
-
@use '../tokens' as tokens;
|
|
5
|
-
|
|
6
|
-
$-palette-domains: ('bg', 'text', 'icon', 'border');
|
|
7
|
-
$-spacing-domains: ('scale', 'gap', 'component-padding', 'section-padding');
|
|
8
|
-
$-sizing-domains: ('scale', 'component-height');
|
|
9
|
-
|
|
10
|
-
@function palette($domain, $token, $state: null) {
|
|
11
|
-
$normalized-domain: '#{$domain}';
|
|
12
|
-
$normalized-token: '#{$token}';
|
|
13
|
-
$key: if($state == null, $normalized-token, '#{$normalized-token}-#{$state}');
|
|
14
|
-
|
|
15
|
-
@if not list.index($-palette-domains, $normalized-domain) {
|
|
16
|
-
@error 'theme.palette(): invalid domain "#{$normalized-domain}". Allowed: #{$-palette-domains}.';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@return internal.om-token($normalized-domain, $key);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@function spacing($domain, $key) {
|
|
23
|
-
$normalized-domain: '#{$domain}';
|
|
24
|
-
|
|
25
|
-
@if not list.index($-spacing-domains, $normalized-domain) {
|
|
26
|
-
@error 'theme.spacing(): invalid domain "#{$normalized-domain}". Allowed: #{$-spacing-domains}.';
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@if $normalized-domain == 'scale' {
|
|
30
|
-
@return internal.om-token(spacing, '#{$key}');
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@if $normalized-domain == 'gap' {
|
|
34
|
-
@return internal.om-gap($key);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@if $normalized-domain == 'component-padding' {
|
|
38
|
-
@return internal.om-component-padding($key);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@return internal.om-section-padding($key);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@function shape($key) {
|
|
45
|
-
@return internal.om-token(radius, '#{$key}');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@function shadows($key) {
|
|
49
|
-
@return internal.om-token(shadow, '#{$key}');
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@function sizing($domain, $key) {
|
|
53
|
-
$normalized-domain: '#{$domain}';
|
|
54
|
-
|
|
55
|
-
@if not list.index($-sizing-domains, $normalized-domain) {
|
|
56
|
-
@error 'theme.sizing(): invalid domain "#{$normalized-domain}". Allowed: #{$-sizing-domains}.';
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@if $normalized-domain == 'scale' {
|
|
60
|
-
@return internal.om-token(sizing, '#{$key}');
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@return internal.om-token(component-height, '#{$key}');
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@function opacity($key) {
|
|
67
|
-
@return tokens.om-opacity($key);
|
|
68
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Tokens entrypoint — re-exports semantic design tokens only.
|
|
2
|
-
// Raw primitives and internal helpers (color hex values, font definitions)
|
|
3
|
-
// are kept private to their subsystems.
|
|
4
|
-
@forward './breakpoint';
|
|
5
|
-
@forward './color';
|
|
6
|
-
@forward './opacity';
|
|
7
|
-
@forward './spacing';
|
|
8
|
-
@forward './radius';
|
|
9
|
-
@forward './shadow';
|
|
10
|
-
@forward './sizing';
|
|
11
|
-
@forward './typography';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Primitive color tokens — raw color values organized by hue family.
|
|
2
|
-
// These are the foundational layer; semantic tokens reference these.
|
|
3
|
-
|
|
4
|
-
// ── Blue (Brand) ──
|
|
5
|
-
$blue-900: #03163a;
|
|
6
|
-
$blue-800: #052561;
|
|
7
|
-
$blue-700: #073387;
|
|
8
|
-
$blue-300: #a4bbe1;
|
|
9
|
-
$blue-200: #c1d0eb;
|
|
10
|
-
$blue-100: #dde6f4;
|
|
11
|
-
$blue-50: #edf2f9;
|
|
12
|
-
|
|
13
|
-
// ── Grey ──
|
|
14
|
-
$grey-900: #131313;
|
|
15
|
-
$grey-800: #404042;
|
|
16
|
-
$grey-700: #646465;
|
|
17
|
-
$grey-500: #9fa3a3;
|
|
18
|
-
$grey-400: #bbbdc1;
|
|
19
|
-
$grey-300: #d1d2d2;
|
|
20
|
-
$grey-200: #e3e4e4;
|
|
21
|
-
$grey-100: #f0f0f0;
|
|
22
|
-
$grey-50: #f8f8f8;
|
|
23
|
-
|
|
24
|
-
// ── Green (Positive) ──
|
|
25
|
-
$green-900: #003104;
|
|
26
|
-
$green-800: #1b4404;
|
|
27
|
-
$green-700: #1f5800;
|
|
28
|
-
|
|
29
|
-
// ── Yellow / Amber (Warning) ──
|
|
30
|
-
$yellow-700: #db8600;
|
|
31
|
-
$yellow-500: #f4c600;
|
|
32
|
-
$yellow-400: #ffb300;
|
|
33
|
-
$yellow-300: #ffa000;
|
|
34
|
-
|
|
35
|
-
// ── Red (Danger) ──
|
|
36
|
-
$red-800: #780000;
|
|
37
|
-
$red-700: #920000;
|
|
38
|
-
$red-600: #ae0000;
|
|
39
|
-
|
|
40
|
-
// ── Neutral extremes ──
|
|
41
|
-
$white: #fff;
|
|
42
|
-
$black: #000;
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
// Semantic color tokens — contextual tokens organized by category, referencing primitives.
|
|
2
|
-
// Categories: bg (background), text, icon, border (border color).
|
|
3
|
-
@use './primitives' as p;
|
|
4
|
-
@use '../opacity' as opacity;
|
|
5
|
-
|
|
6
|
-
// ── Background ──
|
|
7
|
-
$om-bg-scale: (
|
|
8
|
-
'default': p.$white,
|
|
9
|
-
'default-hover': p.$grey-100,
|
|
10
|
-
'default-secondary': p.$grey-50,
|
|
11
|
-
'default-secondary-hover': p.$grey-200,
|
|
12
|
-
'default-tertiary': p.$grey-200,
|
|
13
|
-
'default-tertiary-hover': p.$grey-300,
|
|
14
|
-
'disabled': p.$grey-100,
|
|
15
|
-
'disabled-brand': p.$blue-300,
|
|
16
|
-
'disabled-black': rgba(p.$black, opacity.om-opacity('light')),
|
|
17
|
-
'brand': p.$blue-700,
|
|
18
|
-
'brand-hover': p.$blue-800,
|
|
19
|
-
'brand-secondary': p.$blue-100,
|
|
20
|
-
'brand-secondary-hover': p.$blue-200,
|
|
21
|
-
'brand-tertiary': p.$blue-50,
|
|
22
|
-
'brand-tertiary-hover': p.$blue-100,
|
|
23
|
-
'neutral': p.$grey-900,
|
|
24
|
-
'neutral-hover': p.$grey-800,
|
|
25
|
-
'neutral-secondary': p.$grey-200,
|
|
26
|
-
'neutral-secondary-hover': p.$grey-300,
|
|
27
|
-
'neutral-tertiary': p.$grey-100,
|
|
28
|
-
'neutral-tertiary-hover': p.$grey-200,
|
|
29
|
-
'positive': p.$green-700,
|
|
30
|
-
'positive-hover': p.$green-800,
|
|
31
|
-
'positive-secondary': rgba(p.$green-700, opacity.om-opacity('light')),
|
|
32
|
-
'positive-secondary-hover': rgba(p.$green-700, opacity.om-opacity('medium')),
|
|
33
|
-
'positive-tertiary': rgba(p.$green-700, opacity.om-opacity('subtle')),
|
|
34
|
-
'positive-tertiary-hover': rgba(p.$green-700, opacity.om-opacity('light')),
|
|
35
|
-
'warning': p.$yellow-500,
|
|
36
|
-
'warning-hover': p.$yellow-400,
|
|
37
|
-
'warning-secondary': rgba(p.$yellow-500, opacity.om-opacity('light')),
|
|
38
|
-
'warning-secondary-hover': rgba(p.$yellow-500, opacity.om-opacity('medium')),
|
|
39
|
-
'warning-tertiary': rgba(p.$yellow-500, opacity.om-opacity('subtle')),
|
|
40
|
-
'warning-tertiary-hover': rgba(p.$yellow-500, opacity.om-opacity('light')),
|
|
41
|
-
'danger': p.$red-600,
|
|
42
|
-
'danger-hover': p.$red-700,
|
|
43
|
-
'danger-secondary': rgba(p.$red-600, opacity.om-opacity('light')),
|
|
44
|
-
'danger-secondary-hover': rgba(p.$red-600, opacity.om-opacity('medium')),
|
|
45
|
-
'danger-tertiary': rgba(p.$red-600, opacity.om-opacity('subtle')),
|
|
46
|
-
'danger-tertiary-hover': rgba(p.$red-600, opacity.om-opacity('light')),
|
|
47
|
-
'scrim-dark': rgba(p.$black, opacity.om-opacity('medium')),
|
|
48
|
-
'scrim-light': rgba(p.$white, opacity.om-opacity('strong')),
|
|
49
|
-
) !default;
|
|
50
|
-
|
|
51
|
-
// ── Text ──
|
|
52
|
-
$om-text-scale: (
|
|
53
|
-
// Base
|
|
54
|
-
'default': p.$grey-900,
|
|
55
|
-
'default-secondary': p.$grey-800,
|
|
56
|
-
'default-tertiary': p.$grey-700,
|
|
57
|
-
// Disabled
|
|
58
|
-
'disabled': p.$grey-400,
|
|
59
|
-
'disabled-black': p.$grey-400,
|
|
60
|
-
'disabled-white': p.$grey-50,
|
|
61
|
-
// Brand
|
|
62
|
-
'brand': p.$blue-700,
|
|
63
|
-
'brand-secondary': p.$blue-300,
|
|
64
|
-
'brand-tertiary': p.$blue-200,
|
|
65
|
-
'on-brand': p.$blue-100,
|
|
66
|
-
'on-brand-secondary': p.$blue-800,
|
|
67
|
-
'on-brand-tertiary': p.$blue-900,
|
|
68
|
-
// Neutral
|
|
69
|
-
'neutral': p.$grey-800,
|
|
70
|
-
'neutral-secondary': p.$grey-500,
|
|
71
|
-
'neutral-tertiary': p.$grey-400,
|
|
72
|
-
'on-neutral': p.$white,
|
|
73
|
-
'on-neutral-secondary': p.$grey-300,
|
|
74
|
-
'on-neutral-tertiary': p.$grey-200,
|
|
75
|
-
// Positive
|
|
76
|
-
'positive': p.$green-700,
|
|
77
|
-
'positive-secondary': rgba(p.$green-700, opacity.om-opacity('medium')),
|
|
78
|
-
'positive-tertiary': rgba(p.$green-700, opacity.om-opacity('light')),
|
|
79
|
-
'on-positive': rgba(p.$green-700, opacity.om-opacity('subtle')),
|
|
80
|
-
'on-positive-secondary': p.$green-800,
|
|
81
|
-
'on-positive-tertiary': p.$green-900,
|
|
82
|
-
// Warning
|
|
83
|
-
'warning': p.$yellow-700,
|
|
84
|
-
'warning-secondary': rgba(p.$yellow-500, opacity.om-opacity('medium')),
|
|
85
|
-
'warning-tertiary': rgba(p.$yellow-500, opacity.om-opacity('light')),
|
|
86
|
-
'on-warning': rgba(p.$yellow-500, opacity.om-opacity('subtle')),
|
|
87
|
-
'on-warning-secondary': p.$yellow-300,
|
|
88
|
-
'on-warning-tertiary': p.$yellow-700,
|
|
89
|
-
// Danger
|
|
90
|
-
'danger': p.$red-600,
|
|
91
|
-
'danger-secondary': rgba(p.$red-600, opacity.om-opacity('medium')),
|
|
92
|
-
'danger-tertiary': rgba(p.$red-600, opacity.om-opacity('light')),
|
|
93
|
-
'on-danger': rgba(p.$red-600, opacity.om-opacity('subtle')),
|
|
94
|
-
'on-danger-secondary': p.$red-700,
|
|
95
|
-
'on-danger-tertiary': p.$red-800,
|
|
96
|
-
) !default;
|
|
97
|
-
|
|
98
|
-
// ── Icon ──
|
|
99
|
-
$om-icon-scale: (
|
|
100
|
-
// Base
|
|
101
|
-
'default': p.$grey-900,
|
|
102
|
-
'default-secondary': p.$grey-800,
|
|
103
|
-
'default-tertiary': p.$grey-700,
|
|
104
|
-
// Disabled
|
|
105
|
-
'disabled': p.$grey-300,
|
|
106
|
-
'on-disabled': p.$grey-400,
|
|
107
|
-
// Brand
|
|
108
|
-
'brand': p.$blue-700,
|
|
109
|
-
'brand-secondary': p.$blue-300,
|
|
110
|
-
'brand-tertiary': p.$blue-200,
|
|
111
|
-
'on-brand': p.$blue-100,
|
|
112
|
-
'on-brand-secondary': p.$blue-800,
|
|
113
|
-
'on-brand-tertiary': p.$blue-900,
|
|
114
|
-
// Neutral
|
|
115
|
-
'neutral': p.$grey-800,
|
|
116
|
-
'neutral-secondary': p.$grey-500,
|
|
117
|
-
'neutral-tertiary': p.$grey-400,
|
|
118
|
-
'on-neutral': p.$white,
|
|
119
|
-
'on-neutral-secondary': p.$grey-800,
|
|
120
|
-
'on-neutral-tertiary': p.$grey-700,
|
|
121
|
-
// Positive
|
|
122
|
-
'positive': p.$green-700,
|
|
123
|
-
'positive-secondary': rgba(p.$green-700, opacity.om-opacity('medium')),
|
|
124
|
-
'positive-tertiary': rgba(p.$green-700, opacity.om-opacity('light')),
|
|
125
|
-
'on-positive': rgba(p.$green-700, opacity.om-opacity('subtle')),
|
|
126
|
-
'on-positive-secondary': p.$green-800,
|
|
127
|
-
'on-positive-tertiary': p.$green-900,
|
|
128
|
-
// Warning
|
|
129
|
-
'warning': p.$yellow-700,
|
|
130
|
-
'warning-secondary': p.$yellow-500,
|
|
131
|
-
'warning-tertiary': rgba(p.$yellow-500, opacity.om-opacity('medium')),
|
|
132
|
-
'on-warning': rgba(p.$yellow-500, opacity.om-opacity('light')),
|
|
133
|
-
'on-warning-secondary': p.$yellow-300,
|
|
134
|
-
'on-warning-tertiary': p.$yellow-700,
|
|
135
|
-
// Danger
|
|
136
|
-
'danger': p.$red-600,
|
|
137
|
-
'danger-secondary': rgba(p.$red-600, opacity.om-opacity('medium')),
|
|
138
|
-
'danger-tertiary': rgba(p.$red-600, opacity.om-opacity('light')),
|
|
139
|
-
'on-danger': rgba(p.$red-600, opacity.om-opacity('subtle')),
|
|
140
|
-
'on-danger-secondary': p.$red-700,
|
|
141
|
-
'on-danger-tertiary': p.$red-800,
|
|
142
|
-
) !default;
|
|
143
|
-
|
|
144
|
-
// ── Border (Semantic) ──
|
|
145
|
-
$om-border-scale: (
|
|
146
|
-
// Base
|
|
147
|
-
'default': p.$grey-300,
|
|
148
|
-
'default-secondary': p.$grey-500,
|
|
149
|
-
'default-tertiary': p.$grey-800,
|
|
150
|
-
// Disabled
|
|
151
|
-
'disabled': p.$grey-200,
|
|
152
|
-
// Brand
|
|
153
|
-
'brand': p.$blue-700,
|
|
154
|
-
'brand-secondary': p.$blue-300,
|
|
155
|
-
'brand-tertiary': p.$blue-100,
|
|
156
|
-
// Neutral
|
|
157
|
-
'neutral': p.$grey-200,
|
|
158
|
-
'neutral-secondary': p.$grey-100,
|
|
159
|
-
'neutral-tertiary': p.$grey-50,
|
|
160
|
-
// Positive
|
|
161
|
-
'positive': p.$green-700,
|
|
162
|
-
'positive-secondary': rgba(p.$green-700, opacity.om-opacity('medium')),
|
|
163
|
-
'positive-tertiary': rgba(p.$green-700, opacity.om-opacity('light')),
|
|
164
|
-
// Warning
|
|
165
|
-
'warning': p.$yellow-700,
|
|
166
|
-
'warning-secondary': p.$yellow-500,
|
|
167
|
-
'warning-tertiary': rgba(p.$yellow-500, opacity.om-opacity('light')),
|
|
168
|
-
// Danger
|
|
169
|
-
'danger': p.$red-600,
|
|
170
|
-
'danger-secondary': rgba(p.$red-600, opacity.om-opacity('light')),
|
|
171
|
-
'danger-tertiary': rgba(p.$red-600, opacity.om-opacity('subtle')),
|
|
172
|
-
) !default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Opacity functions — programmatic access to the opacity scale.
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use './primitives' as *;
|
|
4
|
-
|
|
5
|
-
@function om-opacity($key) {
|
|
6
|
-
$value: map.get($om-opacity-scale, $key);
|
|
7
|
-
|
|
8
|
-
@if not $value {
|
|
9
|
-
@error 'Unknown opacity key "#{$key}". Available: #{map.keys($om-opacity-scale)}';
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@return $value;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Opacity scale tokens — standardized opacity values for disabled/overlay states.
|
|
2
|
-
|
|
3
|
-
$om-opacity-scale: (
|
|
4
|
-
'subtle': 0.05,
|
|
5
|
-
'light': 0.1,
|
|
6
|
-
'medium': 0.2,
|
|
7
|
-
'disabled-light': 0.3,
|
|
8
|
-
'overlay': 0.4,
|
|
9
|
-
'disabled': 0.5,
|
|
10
|
-
'disabled-heavy': 0.6,
|
|
11
|
-
'strong': 0.8,
|
|
12
|
-
) !default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Radius scale tokens — shared border-radius values for the theme and utility generator.
|
|
2
|
-
// Aligned with Figma design system: Radius 100–600, Full.
|
|
3
|
-
$om-radius-scale: (
|
|
4
|
-
'0': 0,
|
|
5
|
-
'100': 4px,
|
|
6
|
-
'200': 8px,
|
|
7
|
-
'300': 12px,
|
|
8
|
-
'400': 16px,
|
|
9
|
-
'600': 24px,
|
|
10
|
-
'full': 9999px,
|
|
11
|
-
) !default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// Shadow scale tokens — shared box-shadow values for the theme and utility generator.
|
|
2
|
-
// Aligned with Figma design system: Drop Shadow(Beta) 100–200.
|
|
3
|
-
$om-shadow-scale: (
|
|
4
|
-
'0': none,
|
|
5
|
-
'100': (0 4px 8px rgba(65, 91, 130, 12%)),
|
|
6
|
-
'200': (0 10px 22px rgba(0, 0, 0, 10%)),
|
|
7
|
-
) !default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Sizing token helpers — pure access to the component height scale.
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use './primitives' as primitives;
|
|
4
|
-
|
|
5
|
-
/// Retrieves the raw component height token for a given size key.
|
|
6
|
-
/// @param {string} $key - Size key (xs, sm, md, lg, xl, 2xl, 3xl).
|
|
7
|
-
/// @return {length} Raw component height token value.
|
|
8
|
-
@function om-component-height-token($key) {
|
|
9
|
-
$normalized-key: '#{$key}';
|
|
10
|
-
$value: map.get(primitives.$om-component-height-scale, $normalized-key);
|
|
11
|
-
|
|
12
|
-
@if not $value {
|
|
13
|
-
@error 'Unknown component height key "#{$normalized-key}". Available: #{map.keys(primitives.$om-component-height-scale)}';
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@return $value;
|
|
17
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Component height tokens — standardized heights for interactive elements.
|
|
2
|
-
// Converted from loose variables to a scale map for consistency.
|
|
3
|
-
|
|
4
|
-
$om-component-height-scale: (
|
|
5
|
-
'xs': 24px, // Badge, small chips
|
|
6
|
-
'sm': 32px, // Small button, icon button
|
|
7
|
-
'md': 40px, // Medium button, sidebar items
|
|
8
|
-
'lg': 44px, // Small input/select
|
|
9
|
-
'xl': 48px, // Cell, stepper step
|
|
10
|
-
'2xl': 52px, // Default button
|
|
11
|
-
'3xl': 56px, // Default input/select
|
|
12
|
-
) !default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// Spacing functions — programmatic access to the spacing scale.
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use 'sass:math';
|
|
4
|
-
@use 'sass:meta';
|
|
5
|
-
@use './primitives' as *;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves the spacing value for a given token key.
|
|
9
|
-
*
|
|
10
|
-
* @param {string} $key - The spacing token key (e.g., '100', '200').
|
|
11
|
-
* @return {length|null} The computed spacing value or null if the key is invalid.
|
|
12
|
-
* @example
|
|
13
|
-
* .element {
|
|
14
|
-
* padding: om-spacing-token('200'); // Returns 8px if $om-sys-spacing-unit is 4px
|
|
15
|
-
* }
|
|
16
|
-
*/
|
|
17
|
-
@function om-spacing-token($key) {
|
|
18
|
-
$multiplier: map.get($om-spacing-scale, '#{$key}');
|
|
19
|
-
|
|
20
|
-
@if not $multiplier {
|
|
21
|
-
@return null;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@return $multiplier * $om-sys-spacing-unit;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Computes the spacing value based on a token key or a direct length value.
|
|
29
|
-
*
|
|
30
|
-
* @param {string|length} $value - The spacing token key (e.g., '100') or a direct length value (e.g., '16px').
|
|
31
|
-
* @return {length} The computed spacing value.
|
|
32
|
-
* @example
|
|
33
|
-
* .element {
|
|
34
|
-
* margin: om-spacing-value('300'); // Returns 12px if $om-sys-spacing-unit is 4px
|
|
35
|
-
* padding: om-spacing-value(16px); // Returns 16px
|
|
36
|
-
* gap: om-spacing-value(2); // Returns 8px if $om-sys-spacing-unit is 4px
|
|
37
|
-
* }
|
|
38
|
-
*/
|
|
39
|
-
@function om-spacing-value($value) {
|
|
40
|
-
$result: om-spacing-token($value);
|
|
41
|
-
|
|
42
|
-
@if $result {
|
|
43
|
-
@return $result;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@if meta.type-of($value) == 'number' and math.is-unitless($value) {
|
|
47
|
-
@return $value * $om-sys-spacing-unit;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@return $value;
|
|
51
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Figma-aligned spacing tokens — token 100 = 4px.
|
|
2
|
-
|
|
3
|
-
$om-sys-spacing-unit: 4px !default;
|
|
4
|
-
$om-spacing-scale: (
|
|
5
|
-
'0': 0,
|
|
6
|
-
'050': 0.5,
|
|
7
|
-
'100': 1,
|
|
8
|
-
'200': 2,
|
|
9
|
-
'300': 3,
|
|
10
|
-
'400': 4,
|
|
11
|
-
'500': 5,
|
|
12
|
-
'600': 6,
|
|
13
|
-
'800': 8,
|
|
14
|
-
'1000': 10,
|
|
15
|
-
'1200': 12,
|
|
16
|
-
'1400': 14,
|
|
17
|
-
'1600': 16,
|
|
18
|
-
'2000': 20,
|
|
19
|
-
'2400': 24,
|
|
20
|
-
'3200': 32,
|
|
21
|
-
'4000': 40,
|
|
22
|
-
) !default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Semantic spacing scale maps — subsets of the primitive spacing scale for each Figma usage group.
|
|
2
|
-
// Each map picks specific keys from the primitive $om-spacing-scale to enforce allowed tokens.
|
|
3
|
-
@use 'sass:map';
|
|
4
|
-
@use './primitives' as p;
|
|
5
|
-
|
|
6
|
-
@function -om-pick-spacing($keys...) {
|
|
7
|
-
$result: ();
|
|
8
|
-
|
|
9
|
-
@each $key in $keys {
|
|
10
|
-
@if not map.has-key(p.$om-spacing-scale, $key) {
|
|
11
|
-
@error 'Primitive spacing scale does not contain key "#{$key}"';
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
$result: map.set($result, $key, $key);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@return $result;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
$om-gap-scale: -om-pick-spacing('050', '100', '200', '300', '400', '600', '1600') !default;
|
|
21
|
-
$om-component-padding-scale: -om-pick-spacing('050', '100', '200', '300', '400', '600', '800') !default;
|
|
22
|
-
$om-section-padding-scale: -om-pick-spacing('800', '1600', '2400', '4000') !default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Typography token helpers — pure access to the typography scale.
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
@use './semantic-typography' as scale;
|
|
4
|
-
|
|
5
|
-
/// Retrieves the property map for a given category and size.
|
|
6
|
-
/// @param {string} $category - Typography category (display, headline, title, body, link, label).
|
|
7
|
-
/// @param {string} $size - Size key (xs, sm, md, lg, xl).
|
|
8
|
-
/// @return {map} The full property map for the given category/size.
|
|
9
|
-
@function -om-resolve-typography($category, $size) {
|
|
10
|
-
$cat-map: map.get(scale.$om-typography-categories, $category);
|
|
11
|
-
|
|
12
|
-
@if not $cat-map {
|
|
13
|
-
@error 'Unknown typography category "#{$category}". Available: #{map.keys(scale.$om-typography-categories)}';
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
$entry: map.get($cat-map, $size);
|
|
17
|
-
|
|
18
|
-
@if not $entry {
|
|
19
|
-
@error 'Unknown typography size "#{$size}" for category "#{$category}". Available: #{map.keys($cat-map)}';
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@return $entry;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/// Returns the full property map for a typography category/size.
|
|
26
|
-
/// @param {string} $category - Typography category.
|
|
27
|
-
/// @param {string} $size - Size key.
|
|
28
|
-
/// @return {map} Full property map (font-family, font-size, line-height, letter-spacing, font-weight, etc.).
|
|
29
|
-
@function om-typography($category, $size) {
|
|
30
|
-
@return -om-resolve-typography($category, $size);
|
|
31
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// Typography primitives — font families, weights, line-heights, tracking, and default text color.
|
|
2
|
-
|
|
3
|
-
@use '../color/primitives' as color;
|
|
4
|
-
|
|
5
|
-
// ── Font families ──
|
|
6
|
-
// stylelint-disable value-keyword-case -- Font names must preserve casing
|
|
7
|
-
$om-font-display: var(--font-aeonik), Aeonik, sans-serif !default;
|
|
8
|
-
$om-font-body: var(--font-inter), Inter, sans-serif !default;
|
|
9
|
-
// stylelint-enable value-keyword-case
|
|
10
|
-
|
|
11
|
-
// ── Font weights ──
|
|
12
|
-
$om-font-weight-regular: 400 !default;
|
|
13
|
-
$om-font-weight-medium: 500 !default;
|
|
14
|
-
$om-font-weight-semibold: 600 !default;
|
|
15
|
-
$om-font-weight-bold: 700 !default;
|
|
16
|
-
|
|
17
|
-
// ── Line-height ratios ──
|
|
18
|
-
$om-line-height-tight: 1.08 !default;
|
|
19
|
-
$om-line-height-reading: 1.4 !default;
|
|
20
|
-
|
|
21
|
-
// ── Letter spacing ──
|
|
22
|
-
$om-tracking-tight: -0.25px !default;
|
|
23
|
-
$om-tracking-none: 0 !default;
|
|
24
|
-
|
|
25
|
-
// ── Default text color ──
|
|
26
|
-
// Figma: Text(Beta)/Default/Default = #131313
|
|
27
|
-
$om-text-color-default: color.$grey-900 !default;
|