opui-css 5.4.3 → 6.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1015 -373
- package/LICENSE +21 -21
- package/MIGRATING-legacy.md +159 -0
- package/MIGRATING.md +1362 -138
- package/README.md +238 -87
- package/astro/index.ts +175 -46
- package/bin/opui-css.mjs +68 -0
- package/components/Accordion/Accordion.astro +21 -48
- package/components/Accordion/Accordion.react.tsx +23 -0
- package/components/Accordion/Accordion.svelte +27 -0
- package/components/Accordion/Accordion.vue +21 -38
- package/components/Accordion/AccordionActions.astro +16 -0
- package/components/Accordion/AccordionActions.react.tsx +15 -0
- package/components/Accordion/AccordionActions.svelte +23 -0
- package/components/Accordion/AccordionActions.vue +18 -0
- package/components/Accordion/AccordionContent.astro +9 -0
- package/components/Accordion/AccordionContent.react.tsx +6 -0
- package/components/Accordion/AccordionContent.svelte +15 -0
- package/components/Accordion/AccordionContent.vue +12 -0
- package/components/Accordion/AccordionSummary.astro +19 -0
- package/components/Accordion/AccordionSummary.react.tsx +30 -0
- package/components/Accordion/AccordionSummary.svelte +24 -0
- package/components/Accordion/AccordionSummary.vue +27 -0
- package/components/Accordion/icons.ts +2 -0
- package/components/Accordion/types.astro.ts +13 -4
- package/components/Accordion/types.react.ts +14 -0
- package/components/Accordion/types.svelte.ts +15 -7
- package/components/Accordion/types.ts +16 -10
- package/components/Accordion/types.vue-props.ts +22 -0
- package/components/Anchor/Anchor.astro +37 -49
- package/components/Anchor/Anchor.react.tsx +38 -0
- package/components/Anchor/Anchor.svelte +47 -0
- package/components/Anchor/Anchor.vue +43 -41
- package/components/Anchor/AnchorContent.astro +17 -0
- package/components/Anchor/AnchorContent.react.tsx +18 -0
- package/components/Anchor/AnchorContent.svelte +23 -0
- package/components/Anchor/AnchorContent.vue +20 -0
- package/components/Anchor/context.astro.ts +4 -0
- package/components/Anchor/context.react.ts +8 -0
- package/components/Anchor/context.svelte.ts +7 -0
- package/components/Anchor/context.vue.ts +4 -0
- package/components/Anchor/root.ts +12 -0
- package/components/Anchor/types.astro.ts +7 -4
- package/components/Anchor/types.react.ts +7 -0
- package/components/Anchor/types.svelte.ts +7 -7
- package/components/Anchor/types.ts +18 -9
- package/components/Anchor/types.vue-props.ts +15 -0
- package/components/Avatar/Avatar.astro +33 -29
- package/components/Avatar/Avatar.react.tsx +34 -0
- package/components/Avatar/Avatar.svelte +39 -0
- package/components/Avatar/Avatar.vue +26 -24
- package/components/Avatar/AvatarGroup.astro +9 -0
- package/components/Avatar/AvatarGroup.react.tsx +12 -0
- package/components/Avatar/AvatarGroup.svelte +15 -0
- package/components/Avatar/AvatarGroup.vue +12 -0
- package/components/Avatar/types.astro.ts +11 -10
- package/components/Avatar/types.react.ts +11 -0
- package/components/Avatar/types.svelte.ts +11 -12
- package/components/Avatar/types.ts +32 -29
- package/components/Avatar/types.vue-props.ts +11 -0
- package/components/Badge/Badge.astro +56 -51
- package/components/Badge/Badge.react.tsx +50 -0
- package/components/Badge/Badge.svelte +48 -0
- package/components/Badge/Badge.vue +36 -40
- package/components/Badge/types.astro.ts +4 -4
- package/components/Badge/types.react.ts +6 -0
- package/components/Badge/types.svelte.ts +7 -4
- package/components/Badge/types.ts +12 -12
- package/components/Badge/types.vue-props.ts +7 -0
- package/components/Button/Button.astro +36 -36
- package/components/Button/Button.react.tsx +33 -0
- package/components/Button/Button.svelte +37 -0
- package/components/Button/Button.vue +27 -27
- package/components/Button/types.astro.ts +6 -6
- package/components/Button/types.react.ts +11 -0
- package/components/Button/types.svelte.ts +15 -6
- package/components/Button/types.ts +32 -16
- package/components/Button/types.vue-props.ts +6 -0
- package/components/ButtonGroup/ButtonGroup.astro +33 -29
- package/components/ButtonGroup/ButtonGroup.react.tsx +30 -0
- package/components/ButtonGroup/ButtonGroup.svelte +34 -0
- package/components/ButtonGroup/ButtonGroup.vue +25 -22
- package/components/ButtonGroup/types.astro.ts +4 -4
- package/components/ButtonGroup/types.react.ts +4 -0
- package/components/ButtonGroup/types.svelte.ts +4 -4
- package/components/ButtonGroup/types.ts +7 -7
- package/components/ButtonGroup/types.vue-props.ts +6 -0
- package/components/Callout/Callout.astro +24 -76
- package/components/Callout/Callout.react.tsx +26 -0
- package/components/Callout/Callout.svelte +32 -0
- package/components/Callout/Callout.vue +23 -63
- package/components/Callout/CalloutContent.astro +9 -0
- package/components/Callout/CalloutContent.react.tsx +6 -0
- package/components/Callout/CalloutContent.svelte +15 -0
- package/components/Callout/CalloutContent.vue +12 -0
- package/components/Callout/CalloutIcon.astro +25 -0
- package/components/Callout/CalloutIcon.react.tsx +26 -0
- package/components/Callout/CalloutIcon.svelte +24 -0
- package/components/Callout/CalloutIcon.vue +25 -0
- package/components/Callout/context.astro.ts +4 -0
- package/components/Callout/context.react.ts +8 -0
- package/components/Callout/context.svelte.ts +7 -0
- package/components/Callout/context.vue.ts +4 -0
- package/components/Callout/icons.ts +23 -0
- package/components/Callout/types.astro.ts +9 -4
- package/components/Callout/types.react.ts +9 -0
- package/components/Callout/types.svelte.ts +9 -7
- package/components/Callout/types.ts +10 -10
- package/components/Callout/types.vue-props.ts +14 -0
- package/components/Card/Card.astro +18 -34
- package/components/Card/Card.react.tsx +15 -0
- package/components/Card/Card.svelte +23 -0
- package/components/Card/Card.vue +18 -28
- package/components/Card/CardActions.astro +16 -0
- package/components/Card/CardActions.react.tsx +15 -0
- package/components/Card/CardActions.svelte +23 -0
- package/components/Card/CardActions.vue +18 -0
- package/components/Card/CardContent.astro +9 -0
- package/components/Card/CardContent.react.tsx +6 -0
- package/components/Card/CardContent.svelte +15 -0
- package/components/Card/CardContent.vue +12 -0
- package/components/Card/CardHeader.astro +9 -0
- package/components/Card/CardHeader.react.tsx +6 -0
- package/components/Card/CardHeader.svelte +15 -0
- package/components/Card/CardHeader.vue +12 -0
- package/components/Card/types.astro.ts +10 -4
- package/components/Card/types.react.ts +10 -0
- package/components/Card/types.svelte.ts +11 -7
- package/components/Card/types.ts +11 -11
- package/components/Card/types.vue-props.ts +17 -0
- package/components/Carousel/Carousel.astro +44 -0
- package/components/Carousel/Carousel.react.tsx +47 -0
- package/components/Carousel/Carousel.svelte +45 -0
- package/components/Carousel/Carousel.vue +44 -0
- package/components/Carousel/types.astro.ts +4 -0
- package/components/Carousel/types.react.ts +4 -0
- package/components/Carousel/types.svelte.ts +4 -0
- package/components/Carousel/types.ts +11 -0
- package/components/Carousel/types.vue-props.ts +6 -0
- package/components/Checkbox/Checkbox.astro +58 -46
- package/components/Checkbox/Checkbox.react.tsx +51 -0
- package/components/Checkbox/Checkbox.svelte +61 -0
- package/components/Checkbox/Checkbox.vue +64 -43
- package/components/Checkbox/CheckboxInput.astro +20 -16
- package/components/Checkbox/CheckboxInput.react.tsx +39 -0
- package/components/Checkbox/CheckboxInput.svelte +34 -0
- package/components/Checkbox/CheckboxInput.vue +50 -32
- package/components/Checkbox/types.astro.ts +7 -8
- package/components/Checkbox/types.react.ts +11 -0
- package/components/Checkbox/types.svelte.ts +16 -12
- package/components/Checkbox/types.ts +20 -16
- package/components/Checkbox/types.vue-props.ts +15 -0
- package/components/Chip/Chip.astro +47 -31
- package/components/Chip/Chip.react.tsx +45 -0
- package/components/Chip/Chip.svelte +45 -0
- package/components/Chip/Chip.vue +44 -37
- package/components/Chip/types.astro.ts +9 -9
- package/components/Chip/types.react.ts +15 -0
- package/components/Chip/types.svelte.ts +16 -14
- package/components/Chip/types.ts +30 -13
- package/components/Chip/types.vue-props.ts +11 -0
- package/components/DescriptionList/DescriptionList.astro +22 -18
- package/components/DescriptionList/DescriptionList.react.tsx +25 -0
- package/components/DescriptionList/DescriptionList.svelte +29 -0
- package/components/DescriptionList/DescriptionList.vue +22 -23
- package/components/DescriptionList/DescriptionListDescription.astro +9 -0
- package/components/DescriptionList/DescriptionListDescription.react.tsx +9 -0
- package/components/DescriptionList/DescriptionListDescription.svelte +15 -0
- package/components/DescriptionList/{Description.vue → DescriptionListDescription.vue} +15 -12
- package/components/DescriptionList/DescriptionListItem.astro +9 -0
- package/components/DescriptionList/DescriptionListItem.react.tsx +6 -0
- package/components/DescriptionList/DescriptionListItem.svelte +15 -0
- package/components/DescriptionList/{Item.vue → DescriptionListItem.vue} +15 -12
- package/components/DescriptionList/DescriptionListTerm.astro +9 -0
- package/components/DescriptionList/DescriptionListTerm.react.tsx +6 -0
- package/components/DescriptionList/DescriptionListTerm.svelte +15 -0
- package/components/DescriptionList/{Term.vue → DescriptionListTerm.vue} +15 -12
- package/components/DescriptionList/types.astro.ts +10 -10
- package/components/DescriptionList/types.react.ts +10 -0
- package/components/DescriptionList/types.svelte.ts +10 -4
- package/components/DescriptionList/types.ts +5 -3
- package/components/DescriptionList/types.vue-props.ts +12 -0
- package/components/Dialog/Dialog.astro +24 -38
- package/components/Dialog/Dialog.react.tsx +23 -0
- package/components/Dialog/Dialog.svelte +33 -0
- package/components/Dialog/Dialog.vue +25 -35
- package/components/Dialog/DialogContent.astro +9 -0
- package/components/Dialog/DialogContent.react.tsx +6 -0
- package/components/Dialog/DialogContent.svelte +15 -0
- package/components/Dialog/DialogContent.vue +12 -0
- package/components/Dialog/DialogFooter.astro +16 -0
- package/components/Dialog/DialogFooter.react.tsx +15 -0
- package/components/Dialog/DialogFooter.svelte +23 -0
- package/components/Dialog/DialogFooter.vue +18 -0
- package/components/Dialog/DialogHeader.astro +9 -0
- package/components/Dialog/DialogHeader.react.tsx +6 -0
- package/components/Dialog/DialogHeader.svelte +15 -0
- package/components/Dialog/DialogHeader.vue +12 -0
- package/components/Dialog/DialogTitle.astro +14 -0
- package/components/Dialog/DialogTitle.react.tsx +13 -0
- package/components/Dialog/DialogTitle.svelte +23 -0
- package/components/Dialog/DialogTitle.vue +18 -0
- package/components/Dialog/context.astro.ts +4 -0
- package/components/Dialog/context.react.ts +8 -0
- package/components/Dialog/context.svelte.ts +7 -0
- package/components/Dialog/context.vue.ts +4 -0
- package/components/Dialog/types.astro.ts +12 -4
- package/components/Dialog/types.react.ts +12 -0
- package/components/Dialog/types.svelte.ts +15 -7
- package/components/Dialog/types.ts +17 -10
- package/components/Dialog/types.vue-props.ts +24 -0
- package/components/Divider/Divider.astro +34 -12
- package/components/Divider/Divider.react.tsx +36 -0
- package/components/Divider/Divider.svelte +40 -0
- package/components/Divider/Divider.vue +30 -12
- package/components/Divider/types.astro.ts +4 -4
- package/components/Divider/types.react.ts +4 -0
- package/components/Divider/types.svelte.ts +4 -4
- package/components/Divider/types.ts +5 -3
- package/components/Divider/types.vue-props.ts +6 -0
- package/components/Drawer/Drawer.astro +42 -47
- package/components/Drawer/Drawer.react.tsx +40 -0
- package/components/Drawer/Drawer.svelte +50 -0
- package/components/Drawer/Drawer.vue +41 -46
- package/components/Drawer/DrawerContent.astro +9 -0
- package/components/Drawer/DrawerContent.react.tsx +6 -0
- package/components/Drawer/DrawerContent.svelte +15 -0
- package/components/Drawer/DrawerContent.vue +12 -0
- package/components/Drawer/DrawerFooter.astro +16 -11
- package/components/Drawer/DrawerFooter.react.tsx +15 -0
- package/components/Drawer/DrawerFooter.svelte +23 -0
- package/components/Drawer/DrawerFooter.vue +18 -16
- package/components/Drawer/DrawerHeader.astro +35 -27
- package/components/Drawer/DrawerHeader.react.tsx +41 -0
- package/components/Drawer/DrawerHeader.svelte +42 -0
- package/components/Drawer/DrawerHeader.vue +35 -36
- package/components/Drawer/DrawerTitle.astro +14 -0
- package/components/Drawer/DrawerTitle.react.tsx +13 -0
- package/components/Drawer/DrawerTitle.svelte +23 -0
- package/components/Drawer/DrawerTitle.vue +18 -0
- package/components/Drawer/context.astro.ts +4 -0
- package/components/Drawer/context.react.ts +8 -0
- package/components/Drawer/context.svelte.ts +7 -0
- package/components/Drawer/context.vue.ts +4 -0
- package/components/Drawer/icons.ts +2 -0
- package/components/Drawer/types.astro.ts +12 -8
- package/components/Drawer/types.react.ts +13 -0
- package/components/Drawer/types.svelte.ts +16 -15
- package/components/Drawer/types.ts +25 -20
- package/components/Drawer/types.vue-props.ts +24 -0
- package/components/FieldDescription/FieldDescription.astro +9 -9
- package/components/FieldDescription/FieldDescription.react.tsx +6 -0
- package/components/FieldDescription/FieldDescription.svelte +15 -0
- package/components/FieldDescription/FieldDescription.vue +12 -12
- package/components/FieldDescription/types.astro.ts +4 -4
- package/components/FieldDescription/types.react.ts +4 -0
- package/components/FieldDescription/types.svelte.ts +4 -4
- package/components/FieldDescription/types.ts +1 -1
- package/components/FieldDescription/types.vue-props.ts +6 -0
- package/components/FieldGroup/FieldGroup.astro +24 -24
- package/components/FieldGroup/FieldGroup.react.tsx +27 -0
- package/components/FieldGroup/FieldGroup.svelte +32 -0
- package/components/FieldGroup/FieldGroup.vue +23 -25
- package/components/FieldGroup/context.astro.ts +4 -0
- package/components/FieldGroup/context.react.ts +8 -0
- package/components/FieldGroup/context.svelte.ts +8 -0
- package/components/FieldGroup/context.vue.ts +4 -0
- package/components/FieldGroup/types.astro.ts +4 -4
- package/components/FieldGroup/types.react.ts +4 -0
- package/components/FieldGroup/types.svelte.ts +4 -4
- package/components/FieldGroup/types.ts +6 -4
- package/components/FieldGroup/types.vue-props.ts +6 -0
- package/components/FieldLegend/FieldLegend.astro +11 -11
- package/components/FieldLegend/FieldLegend.react.tsx +14 -0
- package/components/FieldLegend/FieldLegend.svelte +20 -0
- package/components/FieldLegend/FieldLegend.vue +20 -18
- package/components/FieldLegend/types.astro.ts +6 -6
- package/components/FieldLegend/types.react.ts +6 -0
- package/components/FieldLegend/types.svelte.ts +6 -6
- package/components/FieldLegend/types.ts +1 -1
- package/components/FieldLegend/types.vue-props.ts +9 -0
- package/components/{FieldSet/FieldSet.astro → Fieldset/Fieldset.astro} +15 -11
- package/components/Fieldset/Fieldset.react.tsx +15 -0
- package/components/Fieldset/Fieldset.svelte +21 -0
- package/components/Fieldset/Fieldset.vue +21 -0
- package/components/{FieldSet → Fieldset}/types.astro.ts +6 -6
- package/components/Fieldset/types.react.ts +6 -0
- package/components/Fieldset/types.svelte.ts +6 -0
- package/components/Fieldset/types.ts +1 -0
- package/components/Fieldset/types.vue-props.ts +9 -0
- package/components/Form/Form.astro +10 -10
- package/components/Form/Form.react.tsx +9 -0
- package/components/Form/Form.svelte +16 -0
- package/components/Form/Form.vue +16 -14
- package/components/Form/types.astro.ts +6 -6
- package/components/Form/types.react.ts +6 -0
- package/components/Form/types.svelte.ts +6 -7
- package/components/Form/types.ts +1 -1
- package/components/Form/types.vue-props.ts +9 -0
- package/components/List/List.astro +29 -29
- package/components/List/List.react.tsx +27 -0
- package/components/List/List.svelte +31 -0
- package/components/List/List.vue +23 -28
- package/components/List/types.astro.ts +4 -4
- package/components/List/types.react.ts +4 -0
- package/components/List/types.svelte.ts +4 -4
- package/components/List/types.ts +6 -7
- package/components/List/types.vue-props.ts +6 -0
- package/components/ListItem/ListItem.astro +115 -108
- package/components/ListItem/ListItem.react.tsx +65 -0
- package/components/ListItem/ListItem.svelte +80 -0
- package/components/ListItem/ListItem.vue +93 -98
- package/components/ListItem/types.astro.ts +9 -10
- package/components/ListItem/types.react.ts +17 -0
- package/components/ListItem/types.svelte.ts +17 -14
- package/components/ListItem/types.ts +35 -32
- package/components/ListItem/types.vue-props.ts +14 -0
- package/components/Menu/Menu.astro +86 -0
- package/components/Menu/Menu.react.tsx +87 -0
- package/components/Menu/Menu.svelte +71 -0
- package/components/Menu/Menu.vue +76 -0
- package/components/Menu/context.astro.ts +4 -0
- package/components/Menu/context.react.ts +8 -0
- package/components/Menu/context.svelte.ts +7 -0
- package/components/Menu/context.vue.ts +4 -0
- package/components/Menu/types.astro.ts +12 -0
- package/components/Menu/types.react.ts +12 -0
- package/components/Menu/types.svelte.ts +12 -0
- package/components/Menu/types.ts +23 -0
- package/components/Menu/types.vue-props.ts +16 -0
- package/components/Progress/Progress.astro +20 -31
- package/components/Progress/Progress.react.tsx +27 -0
- package/components/Progress/Progress.svelte +30 -0
- package/components/Progress/Progress.vue +30 -34
- package/components/Progress/types.astro.ts +5 -4
- package/components/Progress/types.react.ts +5 -0
- package/components/Progress/types.svelte.ts +5 -4
- package/components/Progress/types.ts +5 -10
- package/components/Progress/types.vue-props.ts +6 -0
- package/components/Radio/Radio.astro +58 -44
- package/components/Radio/Radio.react.tsx +51 -0
- package/components/Radio/Radio.svelte +59 -0
- package/components/Radio/Radio.vue +62 -41
- package/components/Radio/RadioInput.astro +10 -7
- package/components/Radio/RadioInput.react.tsx +10 -0
- package/components/Radio/RadioInput.svelte +27 -0
- package/components/Radio/RadioInput.vue +39 -14
- package/components/Radio/types.astro.ts +7 -6
- package/components/Radio/types.react.ts +11 -0
- package/components/Radio/types.svelte.ts +16 -12
- package/components/Radio/types.ts +17 -12
- package/components/Radio/types.vue-props.ts +15 -0
- package/components/Range/Range.astro +139 -128
- package/components/Range/Range.react.tsx +157 -0
- package/components/Range/Range.svelte +136 -0
- package/components/Range/Range.vue +169 -85
- package/components/Range/types.astro.ts +1 -3
- package/components/Range/types.react.ts +10 -0
- package/components/Range/types.svelte.ts +8 -3
- package/components/Range/types.ts +24 -25
- package/components/Range/types.vue-props.ts +16 -0
- package/components/Range/value.ts +27 -0
- package/components/Select/Select.astro +147 -108
- package/components/Select/Select.react.tsx +124 -0
- package/components/Select/Select.svelte +123 -0
- package/components/Select/Select.vue +157 -85
- package/components/Select/selection.ts +11 -0
- package/components/Select/types.react.ts +6 -0
- package/components/Select/types.svelte.ts +1 -1
- package/components/Select/types.ts +16 -13
- package/components/Select/types.vue-props.ts +20 -0
- package/components/Switch/Switch.astro +72 -76
- package/components/Switch/Switch.react.tsx +63 -0
- package/components/Switch/Switch.svelte +73 -0
- package/components/Switch/Switch.vue +81 -63
- package/components/Switch/SwitchInput.astro +10 -7
- package/components/Switch/SwitchInput.react.tsx +12 -0
- package/components/Switch/SwitchInput.svelte +30 -0
- package/components/Switch/SwitchInput.vue +36 -14
- package/components/Switch/types.astro.ts +7 -5
- package/components/Switch/types.react.ts +11 -0
- package/components/Switch/types.svelte.ts +16 -9
- package/components/Switch/types.ts +19 -16
- package/components/Switch/types.vue-props.ts +17 -0
- package/components/Table/Table.astro +27 -14
- package/components/Table/Table.react.tsx +24 -0
- package/components/Table/Table.svelte +28 -0
- package/components/Table/Table.vue +20 -19
- package/components/Table/TableBody.astro +9 -0
- package/components/Table/TableBody.react.tsx +5 -0
- package/components/Table/TableBody.svelte +9 -0
- package/components/Table/TableBody.vue +12 -0
- package/components/Table/TableCaption.astro +9 -0
- package/components/Table/TableCaption.react.tsx +5 -0
- package/components/Table/TableCaption.svelte +9 -0
- package/components/Table/TableCaption.vue +12 -0
- package/components/Table/TableCell.astro +9 -0
- package/components/Table/TableCell.react.tsx +6 -0
- package/components/Table/TableCell.svelte +16 -0
- package/components/Table/TableCell.vue +12 -0
- package/components/Table/TableColumn.astro +8 -0
- package/components/Table/TableColumn.react.tsx +7 -0
- package/components/Table/TableColumn.svelte +8 -0
- package/components/Table/TableColumn.vue +12 -0
- package/components/Table/TableColumnGroup.astro +9 -0
- package/components/Table/TableColumnGroup.react.tsx +5 -0
- package/components/Table/TableColumnGroup.svelte +9 -0
- package/components/Table/TableColumnGroup.vue +12 -0
- package/components/Table/TableFoot.astro +9 -0
- package/components/Table/TableFoot.react.tsx +5 -0
- package/components/Table/TableFoot.svelte +9 -0
- package/components/Table/TableFoot.vue +12 -0
- package/components/Table/TableHead.astro +9 -0
- package/components/Table/TableHead.react.tsx +5 -0
- package/components/Table/TableHead.svelte +9 -0
- package/components/Table/TableHead.vue +12 -0
- package/components/Table/TableHeaderCell.astro +9 -0
- package/components/Table/TableHeaderCell.react.tsx +10 -0
- package/components/Table/TableHeaderCell.svelte +16 -0
- package/components/Table/TableHeaderCell.vue +12 -0
- package/components/Table/TableRow.astro +9 -0
- package/components/Table/TableRow.react.tsx +5 -0
- package/components/Table/TableRow.svelte +9 -0
- package/components/Table/TableRow.vue +12 -0
- package/components/Table/types.astro.ts +22 -16
- package/components/Table/types.react.ts +22 -0
- package/components/Table/types.svelte.ts +23 -11
- package/components/Table/types.ts +14 -9
- package/components/Table/types.vue-props.ts +28 -0
- package/components/Tabs/Tabs.astro +34 -24
- package/components/Tabs/Tabs.react.tsx +43 -0
- package/components/Tabs/Tabs.svelte +43 -0
- package/components/Tabs/Tabs.vue +30 -20
- package/components/Tabs/TabsItem.astro +28 -40
- package/components/Tabs/TabsItem.react.tsx +47 -0
- package/components/Tabs/TabsItem.svelte +52 -0
- package/components/Tabs/TabsItem.vue +41 -39
- package/components/Tabs/TabsLabel.astro +16 -0
- package/components/Tabs/TabsLabel.react.tsx +17 -0
- package/components/Tabs/TabsLabel.svelte +19 -0
- package/components/Tabs/TabsLabel.vue +16 -0
- package/components/Tabs/TabsPanel.astro +9 -16
- package/components/Tabs/TabsPanel.react.tsx +6 -0
- package/components/Tabs/TabsPanel.svelte +15 -0
- package/components/Tabs/TabsPanel.vue +12 -31
- package/components/Tabs/context.astro.ts +4 -0
- package/components/Tabs/context.react.ts +8 -0
- package/components/Tabs/context.svelte.ts +7 -0
- package/components/Tabs/context.vue.ts +4 -0
- package/components/Tabs/types.astro.ts +13 -11
- package/components/Tabs/types.react.ts +12 -0
- package/components/Tabs/types.svelte.ts +10 -10
- package/components/Tabs/types.ts +21 -19
- package/components/Tabs/types.vue-props.ts +25 -0
- package/components/TextField/TextField.astro +108 -124
- package/components/TextField/TextField.react.tsx +70 -0
- package/components/TextField/TextField.svelte +84 -0
- package/components/TextField/TextField.vue +94 -74
- package/components/TextField/types.astro.ts +15 -17
- package/components/TextField/types.react.ts +12 -0
- package/components/TextField/types.svelte.ts +2 -4
- package/components/TextField/types.ts +11 -25
- package/components/TextField/types.vue-props.ts +21 -0
- package/components/Textarea/Textarea.astro +104 -118
- package/components/Textarea/Textarea.react.tsx +64 -0
- package/components/Textarea/Textarea.svelte +80 -0
- package/components/Textarea/Textarea.vue +88 -64
- package/components/Textarea/types.astro.ts +8 -10
- package/components/Textarea/types.react.ts +8 -0
- package/components/Textarea/types.svelte.ts +13 -21
- package/components/Textarea/types.ts +21 -33
- package/components/Textarea/types.vue-props.ts +20 -0
- package/components/ToggleButton/ToggleButton.astro +43 -43
- package/components/ToggleButton/ToggleButton.react.tsx +57 -0
- package/components/ToggleButton/ToggleButton.svelte +58 -0
- package/components/ToggleButton/ToggleButton.vue +65 -41
- package/components/ToggleButton/types.astro.ts +4 -4
- package/components/ToggleButton/types.react.ts +4 -0
- package/components/ToggleButton/types.svelte.ts +5 -7
- package/components/ToggleButton/types.ts +6 -10
- package/components/ToggleButton/types.vue-props.ts +11 -0
- package/components/ToggleGroup/ToggleGroup.astro +40 -42
- package/components/ToggleGroup/ToggleGroup.react.tsx +54 -0
- package/components/ToggleGroup/ToggleGroup.svelte +54 -0
- package/components/ToggleGroup/ToggleGroup.vue +45 -36
- package/components/ToggleGroup/context.astro.ts +5 -0
- package/components/ToggleGroup/context.react.ts +8 -0
- package/components/ToggleGroup/context.svelte.ts +8 -0
- package/components/ToggleGroup/context.vue.ts +4 -0
- package/components/ToggleGroup/selection.ts +12 -0
- package/components/ToggleGroup/types.astro.ts +4 -4
- package/components/ToggleGroup/types.react.ts +12 -0
- package/components/ToggleGroup/types.svelte.ts +6 -9
- package/components/ToggleGroup/types.ts +17 -15
- package/components/ToggleGroup/types.vue-props.ts +6 -0
- package/components/Tooltip/Tooltip.astro +22 -23
- package/components/Tooltip/Tooltip.react.tsx +24 -0
- package/components/Tooltip/Tooltip.svelte +29 -0
- package/components/Tooltip/Tooltip.vue +21 -22
- package/components/Tooltip/types.astro.ts +4 -4
- package/components/Tooltip/types.react.ts +4 -0
- package/components/Tooltip/types.svelte.ts +4 -7
- package/components/Tooltip/types.ts +5 -11
- package/components/Tooltip/types.vue-props.ts +6 -0
- package/components/content.svelte +9 -0
- package/components/context.astro.ts +15 -0
- package/components/cx.ts +12 -0
- package/components/dev.ts +63 -0
- package/components/group.ts +2 -0
- package/components/id.ts +9 -0
- package/components/style.ts +33 -0
- package/components/tag.ts +6 -0
- package/components/vue.ts +18 -0
- package/core/normalize.css +191 -214
- package/core/palette.css +131 -314
- package/core/utils.css +55 -68
- package/css/compat/avatar.css +7 -0
- package/css/compat/menu.css +20 -0
- package/css/compat.css +3 -0
- package/css/components/accordion.css +237 -173
- package/css/components/anchor.css +40 -27
- package/css/components/avatar.css +105 -65
- package/css/components/badge.css +146 -107
- package/css/components/button-group.css +170 -179
- package/css/components/button.css +422 -212
- package/css/components/callout.css +153 -112
- package/css/components/card.css +234 -116
- package/css/components/carousel.css +399 -0
- package/css/components/checkbox.css +90 -211
- package/css/components/chip.css +215 -92
- package/css/components/choice.css +291 -0
- package/css/components/description-list.css +91 -81
- package/css/components/dialog.css +154 -64
- package/css/components/divider.css +73 -20
- package/css/components/drawer.css +300 -170
- package/css/components/form.css +131 -146
- package/css/components/layout.css +92 -0
- package/css/components/link.css +53 -21
- package/css/components/list.css +460 -343
- package/css/components/menu.css +174 -0
- package/css/components/progress.css +107 -99
- package/css/components/radio.css +61 -170
- package/css/components/range.css +463 -320
- package/css/components/select.css +189 -170
- package/css/components/spinner.css +57 -38
- package/css/components/switch.css +197 -270
- package/css/components/table.css +214 -173
- package/css/components/tabs.css +278 -84
- package/css/components/text-field.css +559 -449
- package/css/components/textarea.css +20 -26
- package/css/components/toggle-button.css +131 -91
- package/css/components/toggle-group.css +86 -56
- package/css/components/tooltip.css +125 -68
- package/css/components/typography.css +801 -580
- package/css/components.css +48 -41
- package/css/imports.css +15 -17
- package/css/js/checkbox.d.ts +3 -0
- package/css/js/checkbox.js +31 -21
- package/css/js/range.d.ts +1 -0
- package/css/js/range.js +44 -0
- package/css/layers.css +2 -0
- package/css/theme.css +750 -124
- package/dist/op.css +16 -241
- package/dist/op.css.map +1 -1
- package/dist/opui.baseline-2023.css +9209 -0
- package/dist/opui.baseline-2023.css.map +1 -0
- package/dist/opui.baseline-2024.css +9209 -0
- package/dist/opui.baseline-2024.css.map +1 -0
- package/dist/opui.baseline-2025.css +9209 -0
- package/dist/opui.baseline-2025.css.map +1 -0
- package/dist/opui.baseline-2026.css +9209 -0
- package/dist/opui.baseline-2026.css.map +1 -0
- package/dist/opui.components.css +7346 -5140
- package/dist/opui.components.css.map +1 -1
- package/dist/opui.css +8489 -6128
- package/dist/opui.css.map +1 -1
- package/dist/opui.no-compat.css +9182 -0
- package/dist/opui.no-compat.css.map +1 -0
- package/env.d.ts +17 -14
- package/open-props.css +15 -6
- package/package.json +136 -90
- package/react/elements.ts +13 -0
- package/react/index.ts +176 -0
- package/skills/opui/SKILL.md +75 -0
- package/skills/opui/references/accordion.md +253 -0
- package/skills/opui/references/anchor.md +213 -0
- package/skills/opui/references/avatar.md +202 -0
- package/skills/opui/references/badge.md +199 -0
- package/skills/opui/references/button-group.md +239 -0
- package/skills/opui/references/button.md +242 -0
- package/skills/opui/references/callout.md +221 -0
- package/skills/opui/references/card.md +222 -0
- package/skills/opui/references/carousel.md +269 -0
- package/skills/opui/references/checkbox.md +241 -0
- package/skills/opui/references/chip.md +135 -0
- package/skills/opui/references/customizing.md +85 -0
- package/skills/opui/references/description-list.md +191 -0
- package/skills/opui/references/dialog.md +301 -0
- package/skills/opui/references/divider.md +112 -0
- package/skills/opui/references/drawer.md +802 -0
- package/skills/opui/references/form.md +260 -0
- package/skills/opui/references/getting-started.md +398 -0
- package/skills/opui/references/index.md +89 -0
- package/skills/opui/references/layout.md +161 -0
- package/skills/opui/references/list.md +216 -0
- package/skills/opui/references/menu.md +248 -0
- package/skills/opui/references/progress.md +114 -0
- package/skills/opui/references/radio.md +234 -0
- package/skills/opui/references/range.md +150 -0
- package/skills/opui/references/select.md +255 -0
- package/skills/opui/references/spinner.md +85 -0
- package/skills/opui/references/switch.md +223 -0
- package/skills/opui/references/table.md +480 -0
- package/skills/opui/references/tabs.md +257 -0
- package/skills/opui/references/text-field.md +167 -0
- package/skills/opui/references/textarea.md +169 -0
- package/skills/opui/references/theming.md +278 -0
- package/skills/opui/references/toggle.md +222 -0
- package/skills/opui/references/tooltip.md +167 -0
- package/skills/opui/references/typography.md +159 -0
- package/svelte/elements.ts +7 -0
- package/svelte/index.ts +177 -0
- package/themes/bootstrap.css +223 -0
- package/themes/brutalist.css +105 -0
- package/themes/m3.css +152 -0
- package/themes/shadcn.css +125 -0
- package/tokens.json +3729 -0
- package/vue/index.ts +175 -54
- package/components/AGENTS.md +0 -247
- package/components/Accordion/types.d.vue.ts +0 -15
- package/components/Accordion/types.solid.ts +0 -6
- package/components/Anchor/types.d.vue.ts +0 -10
- package/components/Anchor/types.solid.ts +0 -6
- package/components/Avatar/types.d.vue.ts +0 -12
- package/components/Avatar/types.solid.ts +0 -11
- package/components/Badge/types.d.vue.ts +0 -10
- package/components/Badge/types.solid.ts +0 -4
- package/components/Button/types.d.vue.ts +0 -10
- package/components/Button/types.solid.ts +0 -8
- package/components/ButtonGroup/types.d.vue.ts +0 -10
- package/components/ButtonGroup/types.solid.ts +0 -4
- package/components/Callout/types.d.vue.ts +0 -10
- package/components/Callout/types.solid.ts +0 -6
- package/components/Card/types.d.vue.ts +0 -10
- package/components/Card/types.solid.ts +0 -6
- package/components/Checkbox/types.d.vue.ts +0 -11
- package/components/Checkbox/types.solid.ts +0 -9
- package/components/Chip/types.d.vue.ts +0 -10
- package/components/Chip/types.solid.ts +0 -10
- package/components/ClassicSelect/ClassicSelect.astro +0 -60
- package/components/ClassicSelect/ClassicSelect.vue +0 -54
- package/components/ClassicSelect/types.astro.ts +0 -8
- package/components/ClassicSelect/types.d.vue.ts +0 -10
- package/components/ClassicSelect/types.solid.ts +0 -5
- package/components/ClassicSelect/types.svelte.ts +0 -5
- package/components/ClassicSelect/types.ts +0 -15
- package/components/DescriptionList/Description.astro +0 -9
- package/components/DescriptionList/Item.astro +0 -9
- package/components/DescriptionList/Term.astro +0 -9
- package/components/DescriptionList/index.ts +0 -12
- package/components/DescriptionList/types.d.vue.ts +0 -10
- package/components/DescriptionList/types.solid.ts +0 -4
- package/components/Dialog/types.d.vue.ts +0 -10
- package/components/Dialog/types.solid.ts +0 -8
- package/components/Divider/types.d.vue.ts +0 -6
- package/components/Divider/types.solid.ts +0 -4
- package/components/Drawer/types.d.vue.ts +0 -31
- package/components/Drawer/types.solid.ts +0 -12
- package/components/FieldDescription/types.d.vue.ts +0 -10
- package/components/FieldDescription/types.solid.ts +0 -5
- package/components/FieldGroup/types.d.vue.ts +0 -12
- package/components/FieldGroup/types.solid.ts +0 -5
- package/components/FieldLegend/types.d.vue.ts +0 -11
- package/components/FieldLegend/types.solid.ts +0 -5
- package/components/FieldSet/FieldSet.vue +0 -18
- package/components/FieldSet/types.d.vue.ts +0 -11
- package/components/FieldSet/types.solid.ts +0 -5
- package/components/FieldSet/types.svelte.ts +0 -8
- package/components/FieldSet/types.ts +0 -5
- package/components/Form/types.d.vue.ts +0 -11
- package/components/Form/types.solid.ts +0 -5
- package/components/IconButton/IconButton.astro +0 -24
- package/components/IconButton/IconButton.vue +0 -24
- package/components/IconButton/types.astro.ts +0 -6
- package/components/IconButton/types.d.vue.ts +0 -10
- package/components/IconButton/types.solid.ts +0 -8
- package/components/IconButton/types.svelte.ts +0 -6
- package/components/IconButton/types.ts +0 -16
- package/components/List/types.d.vue.ts +0 -10
- package/components/List/types.solid.ts +0 -4
- package/components/ListItem/types.d.vue.ts +0 -10
- package/components/ListItem/types.solid.ts +0 -12
- package/components/Progress/types.d.vue.ts +0 -10
- package/components/Progress/types.solid.ts +0 -4
- package/components/Radio/types.d.vue.ts +0 -11
- package/components/Radio/types.solid.ts +0 -9
- package/components/Range/types.d.vue.ts +0 -14
- package/components/Range/types.solid.ts +0 -6
- package/components/Select/types.d.vue.ts +0 -17
- package/components/Select/types.solid.ts +0 -6
- package/components/Switch/types.d.vue.ts +0 -13
- package/components/Switch/types.solid.ts +0 -9
- package/components/Table/Body.astro +0 -11
- package/components/Table/Body.vue +0 -5
- package/components/Table/Cell.astro +0 -11
- package/components/Table/Cell.vue +0 -5
- package/components/Table/Column.astro +0 -12
- package/components/Table/Column.vue +0 -19
- package/components/Table/ColumnGroup.astro +0 -11
- package/components/Table/ColumnGroup.vue +0 -5
- package/components/Table/Head.astro +0 -11
- package/components/Table/Head.vue +0 -5
- package/components/Table/HeaderCell.astro +0 -11
- package/components/Table/HeaderCell.vue +0 -5
- package/components/Table/Row.astro +0 -11
- package/components/Table/Row.vue +0 -5
- package/components/Table/index.ts +0 -20
- package/components/Table/types.d.vue.ts +0 -10
- package/components/Table/types.solid.ts +0 -8
- package/components/Tabs/TabsTab.astro +0 -15
- package/components/Tabs/TabsTab.vue +0 -24
- package/components/Tabs/index.ts +0 -14
- package/components/Tabs/types.d.vue.ts +0 -31
- package/components/Tabs/types.solid.ts +0 -12
- package/components/TextField/types.d.vue.ts +0 -20
- package/components/TextField/types.solid.ts +0 -22
- package/components/Textarea/types.d.vue.ts +0 -19
- package/components/Textarea/types.solid.ts +0 -6
- package/components/Toast/Toast.astro +0 -42
- package/components/Toast/Toast.vue +0 -48
- package/components/ToggleButton/types.d.vue.ts +0 -10
- package/components/ToggleButton/types.solid.ts +0 -7
- package/components/ToggleGroup/types.d.vue.ts +0 -15
- package/components/ToggleGroup/types.solid.ts +0 -4
- package/components/Tooltip/types.d.vue.ts +0 -10
- package/components/Tooltip/types.solid.ts +0 -6
- package/css/components/icon-button.css +0 -139
- package/css/components/text-input.css +0 -68
- package/css/components/toast.css +0 -157
- package/css/js/toast.js +0 -94
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# Typography
|
|
2
|
+
|
|
3
|
+
Styles for headings, body text, and other text content. Use util classes anywhere or wrap content in .ui-rich-text.
|
|
4
|
+
|
|
5
|
+
- CSS: `opui-css/css/components/typography.css` and `opui-css/css/components/link.css`.
|
|
6
|
+
- Full docs with every example: [HTML](https://open-props-ui.netlify.app/html/components/typography.md), [Astro](https://open-props-ui.netlify.app/astro/components/typography.md), [React](https://open-props-ui.netlify.app/react/components/typography.md), [Svelte](https://open-props-ui.netlify.app/svelte/components/typography.md), [Vue](https://open-props-ui.netlify.app/vue/components/typography.md).
|
|
7
|
+
|
|
8
|
+
## Typography (CSS only)
|
|
9
|
+
|
|
10
|
+
### Parts
|
|
11
|
+
|
|
12
|
+
- `.ui-rich-text` (root): Classless typography for uncontrolled child markup.
|
|
13
|
+
|
|
14
|
+
### Classes
|
|
15
|
+
|
|
16
|
+
- Blockquote: `.ui-blockquote`. Quoted block with a start border.
|
|
17
|
+
- Caption: `.ui-caption`. Muted supporting text.
|
|
18
|
+
- Code block: `pre.ui-code-block`. Monospace preformatted block.
|
|
19
|
+
- Colors: `critical` (`.ui-critical`), `info` (`.ui-info`), `neutral` (`.ui-neutral`), `success` (`.ui-success`), `warning` (`.ui-warning`). Tone of `.ui-swatch`. Without it, the swatch takes the palette accent of the scope it sits in.
|
|
20
|
+
- Heading: `h1` (`.ui-h1`), `h2` (`.ui-h2`), `h3` (`.ui-h3`), `h4` (`.ui-h4`), `h5` (`.ui-h5`), `h6` (`.ui-h6`). Heading styles for any element.
|
|
21
|
+
- Heading group: `.ui-hgroup`. Groups an overline, heading, and optional body copy.
|
|
22
|
+
- Icon: `.ui-icon`. Sizes an inline `svg` to `--ui-icon-size` and keeps it from shrinking in a flex row.
|
|
23
|
+
- Inline: `abbr` (`.ui-abbr`), `cite` (`.ui-cite`), `del` (`.ui-del`), `dfn` (`.ui-dfn`), `ins` (`.ui-ins`), `kbd` (`.ui-kbd`), `mark` (`.ui-mark`), `s` (`.ui-s`), `samp` (`.ui-samp`), `small` (`.ui-small`), `sub` (`.ui-sub`), `sup` (`.ui-sup`), `u` (`.ui-u`), `var` (`.ui-var`). Inline text element utilities.
|
|
24
|
+
- Link: `.ui-link`. Link styles outside `.ui-rich-text`. On hover and focus, the underline gets thicker. The color gets darker in light mode and lighter in dark mode.
|
|
25
|
+
- Not rich text: `.ui-not-rich-text`. Ends the `.ui-rich-text` styles inside it.
|
|
26
|
+
- Overline: `.ui-overline`. Small uppercase label text.
|
|
27
|
+
- Paragraph: `.ui-p`. Body paragraph styling.
|
|
28
|
+
- Sizes: `large` (`.ui-large`), `medium` (default), `small` (`.ui-small`). Size modifiers on `.ui-p` and `.ui-icon`. An icon reads `--ui-icon-size-small` and `--ui-icon-size-large`.
|
|
29
|
+
- Swatch: `.ui-swatch`. A small colored dot for a legend, in `--_swatch-bg-color`, the palette accent of its tone or scope.
|
|
30
|
+
|
|
31
|
+
### Notes
|
|
32
|
+
|
|
33
|
+
- Astro and Vue: Add the classes to elements in your templates.
|
|
34
|
+
- React and Svelte: Add the classes to elements in your markup.
|
|
35
|
+
|
|
36
|
+
## Component properties
|
|
37
|
+
|
|
38
|
+
Set inputs on the component, inline or in your CSS. Outputs follow the variant and state, so never override them.
|
|
39
|
+
|
|
40
|
+
### typography.css
|
|
41
|
+
|
|
42
|
+
- `--_flow-gap`: Space between blocks in `.ui-rich-text`. Heading, `hr` and `figure` margins are multiples of it.
|
|
43
|
+
- `--_swatch-bg-color`: Fill of `.ui-swatch`. Defaults to `--ui-palette-accent`, the accent of the color class on the swatch or of the surrounding severity scope.
|
|
44
|
+
|
|
45
|
+
Outputs: `--_count-digits`, `--_font-scale` and `--_start-digits`.
|
|
46
|
+
|
|
47
|
+
### link.css
|
|
48
|
+
|
|
49
|
+
- `--_text-color`: Text and underline color of `.ui-link` and of links without a `ui-` class in `.ui-rich-text`. Defaults to `--ui-primary-text`.
|
|
50
|
+
|
|
51
|
+
## Theme tokens
|
|
52
|
+
|
|
53
|
+
The stylesheets read `--ui-border-color`, `--ui-border-width`, `--ui-border-width-thick`, `--ui-code-bg-color`, `--ui-code-block-bg-color`, `--ui-code-block-text-color`, `--ui-critical-text`, `--ui-font-body`, `--ui-font-code`, `--ui-font-heading`, `--ui-font-size-caption`, `--ui-font-size-h1`, `--ui-font-size-h2`, `--ui-font-size-h3`, `--ui-font-size-h4`, `--ui-font-size-h5`, `--ui-font-size-h6`, `--ui-font-size-large`, `--ui-font-size-small`, `--ui-font-weight-bold`, `--ui-font-weight-medium`, `--ui-icon-size`, `--ui-icon-size-large`, `--ui-icon-size-small`, `--ui-info`, `--ui-letter-spacing-caps`, `--ui-letter-spacing-display`, `--ui-letter-spacing-heading`, `--ui-line-height`, `--ui-on-inverse`, `--ui-palette-accent`, `--ui-primary-text`, `--ui-radius`, `--ui-radius-round`, `--ui-radius-small`, `--ui-rhythm-step`, `--ui-space-2`, `--ui-space-3`, `--ui-space-4`, `--ui-success-text`, `--ui-surface-inverse`, `--ui-text`, `--ui-text-strong`, `--ui-text-subtle`, `--ui-underline-offset`, `--ui-underline-offset-small` and `--ui-underline-thickness-hover`. `theming.md` and `tokens.json` describe them.
|
|
54
|
+
|
|
55
|
+
## HTML
|
|
56
|
+
|
|
57
|
+
### Example: Variants
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
<h1 class="ui-h1">Heading 1</h1>
|
|
61
|
+
<h2 class="ui-h2">Heading 2</h2>
|
|
62
|
+
<h3 class="ui-h3">Heading 3</h3>
|
|
63
|
+
<h4 class="ui-h4">Heading 4</h4>
|
|
64
|
+
<h5 class="ui-h5">Heading 5</h5>
|
|
65
|
+
<h6 class="ui-h6">Heading 6</h6>
|
|
66
|
+
<p class="ui-p ui-large">Body Large</p>
|
|
67
|
+
<p class="ui-p">Body</p>
|
|
68
|
+
<p class="ui-p ui-small">Body Small</p>
|
|
69
|
+
<p class="ui-overline">Overline</p>
|
|
70
|
+
<p class="ui-caption">Caption</p>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Astro
|
|
74
|
+
|
|
75
|
+
There is no Astro component. Use the classes in your markup.
|
|
76
|
+
|
|
77
|
+
### Example: Variants
|
|
78
|
+
|
|
79
|
+
```astro
|
|
80
|
+
<h1 class="ui-h1">Heading 1</h1>
|
|
81
|
+
<h2 class="ui-h2">Heading 2</h2>
|
|
82
|
+
<h3 class="ui-h3">Heading 3</h3>
|
|
83
|
+
<h4 class="ui-h4">Heading 4</h4>
|
|
84
|
+
<h5 class="ui-h5">Heading 5</h5>
|
|
85
|
+
<h6 class="ui-h6">Heading 6</h6>
|
|
86
|
+
<p class="ui-p ui-large">Body Large</p>
|
|
87
|
+
<p class="ui-p">Body</p>
|
|
88
|
+
<p class="ui-p ui-small">Body Small</p>
|
|
89
|
+
<p class="ui-overline">Overline</p>
|
|
90
|
+
<p class="ui-caption">Caption</p>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## React
|
|
94
|
+
|
|
95
|
+
There is no React component. Use the classes in your markup.
|
|
96
|
+
|
|
97
|
+
### Example: Variants
|
|
98
|
+
|
|
99
|
+
```tsx
|
|
100
|
+
export default function Variants() {
|
|
101
|
+
return (
|
|
102
|
+
<>
|
|
103
|
+
<h1 className="ui-h1">Heading 1</h1>
|
|
104
|
+
<h2 className="ui-h2">Heading 2</h2>
|
|
105
|
+
<h3 className="ui-h3">Heading 3</h3>
|
|
106
|
+
<h4 className="ui-h4">Heading 4</h4>
|
|
107
|
+
<h5 className="ui-h5">Heading 5</h5>
|
|
108
|
+
<h6 className="ui-h6">Heading 6</h6>
|
|
109
|
+
<p className="ui-p ui-large">Body Large</p>
|
|
110
|
+
<p className="ui-p">Body</p>
|
|
111
|
+
<p className="ui-p ui-small">Body Small</p>
|
|
112
|
+
<p className="ui-overline">Overline</p>
|
|
113
|
+
<p className="ui-caption">Caption</p>
|
|
114
|
+
</>
|
|
115
|
+
)
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Svelte
|
|
120
|
+
|
|
121
|
+
There is no Svelte component. Use the classes in your markup.
|
|
122
|
+
|
|
123
|
+
### Example: Variants
|
|
124
|
+
|
|
125
|
+
```svelte
|
|
126
|
+
<h1 class="ui-h1">Heading 1</h1>
|
|
127
|
+
<h2 class="ui-h2">Heading 2</h2>
|
|
128
|
+
<h3 class="ui-h3">Heading 3</h3>
|
|
129
|
+
<h4 class="ui-h4">Heading 4</h4>
|
|
130
|
+
<h5 class="ui-h5">Heading 5</h5>
|
|
131
|
+
<h6 class="ui-h6">Heading 6</h6>
|
|
132
|
+
<p class="ui-p ui-large">Body Large</p>
|
|
133
|
+
<p class="ui-p">Body</p>
|
|
134
|
+
<p class="ui-p ui-small">Body Small</p>
|
|
135
|
+
<p class="ui-overline">Overline</p>
|
|
136
|
+
<p class="ui-caption">Caption</p>
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Vue
|
|
140
|
+
|
|
141
|
+
There is no Vue component. Use the classes in your markup.
|
|
142
|
+
|
|
143
|
+
### Example: Variants
|
|
144
|
+
|
|
145
|
+
```vue
|
|
146
|
+
<template>
|
|
147
|
+
<h1 class="ui-h1">Heading 1</h1>
|
|
148
|
+
<h2 class="ui-h2">Heading 2</h2>
|
|
149
|
+
<h3 class="ui-h3">Heading 3</h3>
|
|
150
|
+
<h4 class="ui-h4">Heading 4</h4>
|
|
151
|
+
<h5 class="ui-h5">Heading 5</h5>
|
|
152
|
+
<h6 class="ui-h6">Heading 6</h6>
|
|
153
|
+
<p class="ui-p ui-large">Body Large</p>
|
|
154
|
+
<p class="ui-p">Body</p>
|
|
155
|
+
<p class="ui-p ui-small">Body Small</p>
|
|
156
|
+
<p class="ui-overline">Overline</p>
|
|
157
|
+
<p class="ui-caption">Caption</p>
|
|
158
|
+
</template>
|
|
159
|
+
```
|
package/svelte/index.ts
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import type {} from "./elements"
|
|
2
|
+
|
|
3
|
+
export { default as Accordion } from "../components/Accordion/Accordion.svelte"
|
|
4
|
+
export { default as AccordionActions } from "../components/Accordion/AccordionActions.svelte"
|
|
5
|
+
export { default as AccordionContent } from "../components/Accordion/AccordionContent.svelte"
|
|
6
|
+
export { default as AccordionSummary } from "../components/Accordion/AccordionSummary.svelte"
|
|
7
|
+
export { default as Anchor } from "../components/Anchor/Anchor.svelte"
|
|
8
|
+
export { default as AnchorContent } from "../components/Anchor/AnchorContent.svelte"
|
|
9
|
+
export { default as Avatar } from "../components/Avatar/Avatar.svelte"
|
|
10
|
+
export { default as AvatarGroup } from "../components/Avatar/AvatarGroup.svelte"
|
|
11
|
+
export { default as Badge } from "../components/Badge/Badge.svelte"
|
|
12
|
+
export { default as Button } from "../components/Button/Button.svelte"
|
|
13
|
+
export { default as ButtonGroup } from "../components/ButtonGroup/ButtonGroup.svelte"
|
|
14
|
+
export { default as Callout } from "../components/Callout/Callout.svelte"
|
|
15
|
+
export { default as CalloutContent } from "../components/Callout/CalloutContent.svelte"
|
|
16
|
+
export { default as CalloutIcon } from "../components/Callout/CalloutIcon.svelte"
|
|
17
|
+
export { default as Card } from "../components/Card/Card.svelte"
|
|
18
|
+
export { default as CardActions } from "../components/Card/CardActions.svelte"
|
|
19
|
+
export { default as CardContent } from "../components/Card/CardContent.svelte"
|
|
20
|
+
export { default as CardHeader } from "../components/Card/CardHeader.svelte"
|
|
21
|
+
export { default as Carousel } from "../components/Carousel/Carousel.svelte"
|
|
22
|
+
export { default as Checkbox } from "../components/Checkbox/Checkbox.svelte"
|
|
23
|
+
export { default as CheckboxInput } from "../components/Checkbox/CheckboxInput.svelte"
|
|
24
|
+
export { default as Chip } from "../components/Chip/Chip.svelte"
|
|
25
|
+
export { default as DescriptionList } from "../components/DescriptionList/DescriptionList.svelte"
|
|
26
|
+
export { default as DescriptionListDescription } from "../components/DescriptionList/DescriptionListDescription.svelte"
|
|
27
|
+
export { default as DescriptionListItem } from "../components/DescriptionList/DescriptionListItem.svelte"
|
|
28
|
+
export { default as DescriptionListTerm } from "../components/DescriptionList/DescriptionListTerm.svelte"
|
|
29
|
+
export { default as Dialog } from "../components/Dialog/Dialog.svelte"
|
|
30
|
+
export { default as DialogContent } from "../components/Dialog/DialogContent.svelte"
|
|
31
|
+
export { default as DialogFooter } from "../components/Dialog/DialogFooter.svelte"
|
|
32
|
+
export { default as DialogHeader } from "../components/Dialog/DialogHeader.svelte"
|
|
33
|
+
export { default as DialogTitle } from "../components/Dialog/DialogTitle.svelte"
|
|
34
|
+
export { default as Divider } from "../components/Divider/Divider.svelte"
|
|
35
|
+
export { default as Drawer } from "../components/Drawer/Drawer.svelte"
|
|
36
|
+
export { default as DrawerContent } from "../components/Drawer/DrawerContent.svelte"
|
|
37
|
+
export { default as DrawerFooter } from "../components/Drawer/DrawerFooter.svelte"
|
|
38
|
+
export { default as DrawerHeader } from "../components/Drawer/DrawerHeader.svelte"
|
|
39
|
+
export { default as DrawerTitle } from "../components/Drawer/DrawerTitle.svelte"
|
|
40
|
+
export { default as FieldDescription } from "../components/FieldDescription/FieldDescription.svelte"
|
|
41
|
+
export { default as FieldGroup } from "../components/FieldGroup/FieldGroup.svelte"
|
|
42
|
+
export { default as FieldLegend } from "../components/FieldLegend/FieldLegend.svelte"
|
|
43
|
+
export { default as Fieldset } from "../components/Fieldset/Fieldset.svelte"
|
|
44
|
+
export { default as Form } from "../components/Form/Form.svelte"
|
|
45
|
+
export { default as List } from "../components/List/List.svelte"
|
|
46
|
+
export { default as ListItem } from "../components/ListItem/ListItem.svelte"
|
|
47
|
+
export { default as Menu } from "../components/Menu/Menu.svelte"
|
|
48
|
+
export { default as Progress } from "../components/Progress/Progress.svelte"
|
|
49
|
+
export { default as Radio } from "../components/Radio/Radio.svelte"
|
|
50
|
+
export { default as RadioInput } from "../components/Radio/RadioInput.svelte"
|
|
51
|
+
export { default as Range } from "../components/Range/Range.svelte"
|
|
52
|
+
export { default as Select } from "../components/Select/Select.svelte"
|
|
53
|
+
export { default as Switch } from "../components/Switch/Switch.svelte"
|
|
54
|
+
export { default as SwitchInput } from "../components/Switch/SwitchInput.svelte"
|
|
55
|
+
export { default as Table } from "../components/Table/Table.svelte"
|
|
56
|
+
export { default as TableBody } from "../components/Table/TableBody.svelte"
|
|
57
|
+
export { default as TableCaption } from "../components/Table/TableCaption.svelte"
|
|
58
|
+
export { default as TableCell } from "../components/Table/TableCell.svelte"
|
|
59
|
+
export { default as TableColumn } from "../components/Table/TableColumn.svelte"
|
|
60
|
+
export { default as TableColumnGroup } from "../components/Table/TableColumnGroup.svelte"
|
|
61
|
+
export { default as TableFoot } from "../components/Table/TableFoot.svelte"
|
|
62
|
+
export { default as TableHead } from "../components/Table/TableHead.svelte"
|
|
63
|
+
export { default as TableHeaderCell } from "../components/Table/TableHeaderCell.svelte"
|
|
64
|
+
export { default as TableRow } from "../components/Table/TableRow.svelte"
|
|
65
|
+
export { default as Tabs } from "../components/Tabs/Tabs.svelte"
|
|
66
|
+
export { default as TabsItem } from "../components/Tabs/TabsItem.svelte"
|
|
67
|
+
export { default as TabsLabel } from "../components/Tabs/TabsLabel.svelte"
|
|
68
|
+
export { default as TabsPanel } from "../components/Tabs/TabsPanel.svelte"
|
|
69
|
+
export { default as Textarea } from "../components/Textarea/Textarea.svelte"
|
|
70
|
+
export { default as TextField } from "../components/TextField/TextField.svelte"
|
|
71
|
+
export { default as ToggleButton } from "../components/ToggleButton/ToggleButton.svelte"
|
|
72
|
+
export { default as ToggleGroup } from "../components/ToggleGroup/ToggleGroup.svelte"
|
|
73
|
+
export { default as Tooltip } from "../components/Tooltip/Tooltip.svelte"
|
|
74
|
+
export { default as TooltipContent } from "../components/Anchor/AnchorContent.svelte"
|
|
75
|
+
export type {
|
|
76
|
+
AccordionActionsProps,
|
|
77
|
+
AccordionContentProps,
|
|
78
|
+
Props as AccordionProps,
|
|
79
|
+
AccordionSummaryProps,
|
|
80
|
+
} from "../components/Accordion/types.svelte"
|
|
81
|
+
export type {
|
|
82
|
+
AnchorContentProps,
|
|
83
|
+
Props as AnchorProps,
|
|
84
|
+
AnchorContentProps as TooltipContentProps,
|
|
85
|
+
} from "../components/Anchor/types.svelte"
|
|
86
|
+
export type {
|
|
87
|
+
AvatarGroupProps,
|
|
88
|
+
Props as AvatarProps,
|
|
89
|
+
} from "../components/Avatar/types.svelte"
|
|
90
|
+
export type { Props as BadgeProps } from "../components/Badge/types.svelte"
|
|
91
|
+
export type { Props as ButtonProps } from "../components/Button/types.svelte"
|
|
92
|
+
export type { Props as ButtonGroupProps } from "../components/ButtonGroup/types.svelte"
|
|
93
|
+
export type {
|
|
94
|
+
CalloutContentProps,
|
|
95
|
+
CalloutIconProps,
|
|
96
|
+
Props as CalloutProps,
|
|
97
|
+
} from "../components/Callout/types.svelte"
|
|
98
|
+
export type {
|
|
99
|
+
CardActionsProps,
|
|
100
|
+
CardContentProps,
|
|
101
|
+
CardHeaderProps,
|
|
102
|
+
Props as CardProps,
|
|
103
|
+
} from "../components/Card/types.svelte"
|
|
104
|
+
export type { Props as CarouselProps } from "../components/Carousel/types.svelte"
|
|
105
|
+
export type {
|
|
106
|
+
CheckboxInputProps,
|
|
107
|
+
Props as CheckboxProps,
|
|
108
|
+
} from "../components/Checkbox/types.svelte"
|
|
109
|
+
export type { Props as ChipProps } from "../components/Chip/types.svelte"
|
|
110
|
+
export type {
|
|
111
|
+
DescriptionListDescriptionProps,
|
|
112
|
+
DescriptionListItemProps,
|
|
113
|
+
Props as DescriptionListProps,
|
|
114
|
+
DescriptionListTermProps,
|
|
115
|
+
} from "../components/DescriptionList/types.svelte"
|
|
116
|
+
export type {
|
|
117
|
+
DialogContentProps,
|
|
118
|
+
DialogFooterProps,
|
|
119
|
+
DialogHeaderProps,
|
|
120
|
+
Props as DialogProps,
|
|
121
|
+
DialogTitleProps,
|
|
122
|
+
} from "../components/Dialog/types.svelte"
|
|
123
|
+
export type { Props as DividerProps } from "../components/Divider/types.svelte"
|
|
124
|
+
export type {
|
|
125
|
+
DrawerContentProps,
|
|
126
|
+
DrawerFooterProps,
|
|
127
|
+
DrawerHeaderProps,
|
|
128
|
+
Props as DrawerProps,
|
|
129
|
+
DrawerTitleProps,
|
|
130
|
+
} from "../components/Drawer/types.svelte"
|
|
131
|
+
export type { Props as FieldDescriptionProps } from "../components/FieldDescription/types.svelte"
|
|
132
|
+
export type { Props as FieldGroupProps } from "../components/FieldGroup/types.svelte"
|
|
133
|
+
export type { Props as FieldLegendProps } from "../components/FieldLegend/types.svelte"
|
|
134
|
+
export type { Props as FieldsetProps } from "../components/Fieldset/types.svelte"
|
|
135
|
+
export type { Props as FormProps } from "../components/Form/types.svelte"
|
|
136
|
+
export type { Props as ListProps } from "../components/List/types.svelte"
|
|
137
|
+
export type { Props as ListItemProps } from "../components/ListItem/types.svelte"
|
|
138
|
+
export type {
|
|
139
|
+
MenuItem,
|
|
140
|
+
Props as MenuProps,
|
|
141
|
+
} from "../components/Menu/types.svelte"
|
|
142
|
+
export type { Props as ProgressProps } from "../components/Progress/types.svelte"
|
|
143
|
+
export type {
|
|
144
|
+
RadioInputProps,
|
|
145
|
+
Props as RadioProps,
|
|
146
|
+
} from "../components/Radio/types.svelte"
|
|
147
|
+
export type { RangeItem } from "../components/Range/types"
|
|
148
|
+
export type { Props as RangeProps } from "../components/Range/types.svelte"
|
|
149
|
+
export type { SelectItem } from "../components/Select/types"
|
|
150
|
+
export type { Props as SelectProps } from "../components/Select/types.svelte"
|
|
151
|
+
export type {
|
|
152
|
+
SwitchInputProps,
|
|
153
|
+
Props as SwitchProps,
|
|
154
|
+
} from "../components/Switch/types.svelte"
|
|
155
|
+
export type {
|
|
156
|
+
TableBodyProps,
|
|
157
|
+
TableCaptionProps,
|
|
158
|
+
TableCellProps,
|
|
159
|
+
TableColumnGroupProps,
|
|
160
|
+
TableColumnProps,
|
|
161
|
+
TableFootProps,
|
|
162
|
+
TableHeaderCellProps,
|
|
163
|
+
TableHeadProps,
|
|
164
|
+
Props as TableProps,
|
|
165
|
+
TableRowProps,
|
|
166
|
+
} from "../components/Table/types.svelte"
|
|
167
|
+
export type {
|
|
168
|
+
TabsItemProps,
|
|
169
|
+
TabsLabelProps,
|
|
170
|
+
TabsPanelProps,
|
|
171
|
+
Props as TabsProps,
|
|
172
|
+
} from "../components/Tabs/types.svelte"
|
|
173
|
+
export type { Props as TextareaProps } from "../components/Textarea/types.svelte"
|
|
174
|
+
export type { Props as TextFieldProps } from "../components/TextField/types.svelte"
|
|
175
|
+
export type { Props as ToggleButtonProps } from "../components/ToggleButton/types.svelte"
|
|
176
|
+
export type { Props as ToggleGroupProps } from "../components/ToggleGroup/types.svelte"
|
|
177
|
+
export type { Props as TooltipProps } from "../components/Tooltip/types.svelte"
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
@layer openprops, theme, normalize, components.prose, components.root, components.extended, components.compat, utils;
|
|
2
|
+
@layer theme.palette, theme.base, theme.custom, theme.severity;
|
|
3
|
+
|
|
4
|
+
@layer theme.custom {
|
|
5
|
+
:where(html, .ui-palette, .ui-contrast-more) {
|
|
6
|
+
--ui-backdrop-blur: 0px;
|
|
7
|
+
--ui-border-color: light-dark(
|
|
8
|
+
oklch(0.91 0.007 248),
|
|
9
|
+
oklch(0.428 0.015 248)
|
|
10
|
+
);
|
|
11
|
+
--ui-border-color-on-filled: var(--ui-border-color);
|
|
12
|
+
--ui-border-color-raised: var(--ui-border-color);
|
|
13
|
+
--ui-radius: 0.375rem;
|
|
14
|
+
--ui-radius-small: 0.375rem;
|
|
15
|
+
--ui-radius-x-small: 0.25rem;
|
|
16
|
+
--ui-button-accent: light-dark(
|
|
17
|
+
oklch(0.525 0.017 245),
|
|
18
|
+
oklch(0.77 0.014 248)
|
|
19
|
+
);
|
|
20
|
+
--ui-button-on-accent: light-dark(oklch(1 0 0), oklch(0 0 0));
|
|
21
|
+
--ui-button-font-weight: 400;
|
|
22
|
+
--ui-button-padding-inline: 0.75rem;
|
|
23
|
+
--ui-button-padding-inline-large: 1rem;
|
|
24
|
+
--ui-button-padding-inline-small: 0.5rem;
|
|
25
|
+
--ui-button-padding-inline-x-small: 0.5rem;
|
|
26
|
+
--ui-choice-ripple-bg-color: transparent;
|
|
27
|
+
--ui-choice-size: 1rem;
|
|
28
|
+
--ui-code-bg-color: transparent;
|
|
29
|
+
--ui-critical: oklch(0.592 0.202 21.2);
|
|
30
|
+
--ui-density: 0.95;
|
|
31
|
+
--ui-dialog-radius: 0.5rem;
|
|
32
|
+
--ui-disabled-opacity: 0.65;
|
|
33
|
+
--ui-field-border-color: light-dark(
|
|
34
|
+
oklch(0.91 0.007 248),
|
|
35
|
+
oklch(0.428 0.015 248)
|
|
36
|
+
);
|
|
37
|
+
--ui-field-border-color-on-filled: var(--ui-field-border-color);
|
|
38
|
+
--ui-field-helper-font-size: 0.875rem;
|
|
39
|
+
--ui-field-helper-text-color: light-dark(
|
|
40
|
+
oklch(0.262 0.01 248 / 0.75),
|
|
41
|
+
oklch(0.91 0.007 248 / 0.75)
|
|
42
|
+
);
|
|
43
|
+
--ui-field-label-text-color: var(--ui-text);
|
|
44
|
+
--ui-field-label-font-size: 1rem;
|
|
45
|
+
--ui-field-label-font-weight: 400;
|
|
46
|
+
--ui-field-padding-inline: 0.75rem;
|
|
47
|
+
--ui-focus-ring-color: oklch(0.578 0.228 260 / 0.25);
|
|
48
|
+
--ui-focus-ring-offset: 0px;
|
|
49
|
+
--ui-focus-ring-width: 0.25rem;
|
|
50
|
+
--ui-font-body:
|
|
51
|
+
system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
|
|
52
|
+
"Noto Sans", "Liberation Sans", Arial, sans-serif;
|
|
53
|
+
--ui-font-size-h1: min(calc(1.375rem + 1.5vi), 2.5rem);
|
|
54
|
+
--ui-font-size-h2: min(calc(1.325rem + 0.9vi), 2rem);
|
|
55
|
+
--ui-font-size-h3: min(calc(1.3rem + 0.6vi), 1.75rem);
|
|
56
|
+
--ui-font-size-h4: min(calc(1.275rem + 0.3vi), 1.5rem);
|
|
57
|
+
--ui-font-size-h5: 1.25rem;
|
|
58
|
+
--ui-font-size-h6: 1rem;
|
|
59
|
+
--ui-font-weight-bold: 500;
|
|
60
|
+
--ui-font-weight-semibold: 700;
|
|
61
|
+
--ui-gray-chroma: 0.012;
|
|
62
|
+
--ui-gray-hue: 250;
|
|
63
|
+
--ui-info: oklch(0.775 0.1379 218);
|
|
64
|
+
--ui-letter-spacing-display: 0;
|
|
65
|
+
--ui-letter-spacing-heading: 0;
|
|
66
|
+
--ui-line-height: 1.5;
|
|
67
|
+
--ui-line-height-relaxed: 1.5;
|
|
68
|
+
--ui-neutral: oklch(0.558 0.016 245);
|
|
69
|
+
--ui-on-inverse: light-dark(oklch(1 0 0), oklch(0.262 0.01 248));
|
|
70
|
+
--ui-palette-source: oklch(0.578 0.228 260);
|
|
71
|
+
--ui-primary-source: oklch(0.578 0.228 260);
|
|
72
|
+
--ui-selected: var(--ui-primary);
|
|
73
|
+
--ui-on-selected: var(--ui-on-primary);
|
|
74
|
+
--ui-shadow-overlay: none;
|
|
75
|
+
--ui-shadow-elevated: 0 0.125rem 0.25rem oklch(0 0 0 / 0.075);
|
|
76
|
+
--ui-shadow-scroll: 0 0.125rem 0.25rem oklch(0 0 0 / 0.075);
|
|
77
|
+
--ui-shadow-selected: none;
|
|
78
|
+
--ui-success: oklch(0.552 0.1234 157);
|
|
79
|
+
--ui-surface: light-dark(oklch(1 0 0), oklch(0.262 0.01 248));
|
|
80
|
+
--ui-surface-elevated: light-dark(oklch(1 0 0), oklch(0.306 0.011 248));
|
|
81
|
+
--ui-surface-filled: light-dark(
|
|
82
|
+
oklch(0.942 0.005 248),
|
|
83
|
+
oklch(0.345 0.013 248)
|
|
84
|
+
);
|
|
85
|
+
--ui-surface-inverse: light-dark(oklch(0 0 0), oklch(1 0 0));
|
|
86
|
+
--ui-surface-tonal: light-dark(
|
|
87
|
+
oklch(0.982 0.002 249),
|
|
88
|
+
oklch(0.306 0.011 248)
|
|
89
|
+
);
|
|
90
|
+
--ui-switch-thumb-bg-color: light-dark(
|
|
91
|
+
oklch(0 0 0 / 0.25),
|
|
92
|
+
oklch(1 0 0 / 0.25)
|
|
93
|
+
);
|
|
94
|
+
--ui-switch-thumb-size: 0.75rem;
|
|
95
|
+
--ui-switch-track-bg-color: light-dark(oklch(1 0 0), oklch(0.262 0.01 248));
|
|
96
|
+
--ui-switch-track-block-size: 1rem;
|
|
97
|
+
--ui-switch-track-inline-size: 2rem;
|
|
98
|
+
--ui-text: light-dark(oklch(0.262 0.01 248), oklch(0.91 0.007 248));
|
|
99
|
+
--ui-text-strong: light-dark(oklch(0.262 0.01 248), oklch(1 0 0));
|
|
100
|
+
--ui-text-subtle: light-dark(
|
|
101
|
+
oklch(0.473 0.006 248),
|
|
102
|
+
oklch(0.765 0.007 248)
|
|
103
|
+
);
|
|
104
|
+
--ui-underline-offset: auto;
|
|
105
|
+
--ui-underline-thickness-hover: auto;
|
|
106
|
+
--ui-warning: oklch(0.844 0.17217 85);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:where(.ui-critical) {
|
|
110
|
+
--ui-palette-accent: oklch(0.592 0.202 21.2);
|
|
111
|
+
--ui-palette-border: light-dark(oklch(0.815 0.08 12), oklch(0.41 0.134 21));
|
|
112
|
+
--ui-palette-strong: light-dark(
|
|
113
|
+
oklch(0.312 0.098 19),
|
|
114
|
+
oklch(0.73 0.123 15)
|
|
115
|
+
);
|
|
116
|
+
--ui-palette-text: light-dark(oklch(0.312 0.098 19), oklch(0.73 0.123 15));
|
|
117
|
+
--ui-palette-tint-subtle: light-dark(
|
|
118
|
+
oklch(0.907 0.037 12),
|
|
119
|
+
oklch(0.207 0.055 18)
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:where(.ui-info) {
|
|
124
|
+
--ui-palette-accent: oklch(0.775 0.1379 218);
|
|
125
|
+
--ui-palette-border: light-dark(
|
|
126
|
+
oklch(0.893 0.077 211),
|
|
127
|
+
oklch(0.5321 0.094 218)
|
|
128
|
+
);
|
|
129
|
+
--ui-palette-strong: light-dark(
|
|
130
|
+
oklch(0.401 0.0695 216),
|
|
131
|
+
oklch(0.846 0.1074 213)
|
|
132
|
+
);
|
|
133
|
+
--ui-palette-text: light-dark(
|
|
134
|
+
oklch(0.401 0.0695 216),
|
|
135
|
+
oklch(0.846 0.1074 213)
|
|
136
|
+
);
|
|
137
|
+
--ui-palette-tint-subtle: light-dark(
|
|
138
|
+
oklch(0.943 0.04 212),
|
|
139
|
+
oklch(0.256 0.043 216)
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:where(.ui-neutral) {
|
|
144
|
+
--ui-palette-accent: oklch(0.558 0.016 245);
|
|
145
|
+
--ui-palette-border: light-dark(
|
|
146
|
+
oklch(0.83 0.006 240),
|
|
147
|
+
oklch(0.39 0.011 248)
|
|
148
|
+
);
|
|
149
|
+
--ui-palette-strong: light-dark(
|
|
150
|
+
oklch(0.302 0.008 240),
|
|
151
|
+
oklch(0.742 0.009 248)
|
|
152
|
+
);
|
|
153
|
+
--ui-palette-text: light-dark(
|
|
154
|
+
oklch(0.302 0.008 240),
|
|
155
|
+
oklch(0.742 0.009 248)
|
|
156
|
+
);
|
|
157
|
+
--ui-palette-tint-subtle: light-dark(
|
|
158
|
+
oklch(0.916 0.003 265),
|
|
159
|
+
oklch(0.204 0.004 265)
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:where(.ui-success) {
|
|
164
|
+
--ui-palette-accent: oklch(0.552 0.1234 157);
|
|
165
|
+
--ui-palette-border: light-dark(
|
|
166
|
+
oklch(0.817 0.054 166),
|
|
167
|
+
oklch(0.386 0.083 157.5)
|
|
168
|
+
);
|
|
169
|
+
--ui-palette-strong: light-dark(
|
|
170
|
+
oklch(0.297 0.06 159),
|
|
171
|
+
oklch(0.726 0.082 163)
|
|
172
|
+
);
|
|
173
|
+
--ui-palette-text: light-dark(
|
|
174
|
+
oklch(0.297 0.06 159),
|
|
175
|
+
oklch(0.726 0.082 163)
|
|
176
|
+
);
|
|
177
|
+
--ui-palette-tint-subtle: light-dark(
|
|
178
|
+
oklch(0.91 0.027 167),
|
|
179
|
+
oklch(0.2 0.035 162)
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:where(.ui-warning) {
|
|
184
|
+
--ui-palette-accent: oklch(0.844 0.17217 85);
|
|
185
|
+
--ui-palette-border: light-dark(
|
|
186
|
+
oklch(0.929 0.097 92),
|
|
187
|
+
oklch(0.58 0.1176 86)
|
|
188
|
+
);
|
|
189
|
+
--ui-palette-strong: light-dark(
|
|
190
|
+
oklch(0.435 0.0876 87),
|
|
191
|
+
oklch(0.898 0.1366 91)
|
|
192
|
+
);
|
|
193
|
+
--ui-palette-text: light-dark(
|
|
194
|
+
oklch(0.435 0.0876 87),
|
|
195
|
+
oklch(0.898 0.1366 91)
|
|
196
|
+
);
|
|
197
|
+
--ui-palette-tint-subtle: light-dark(
|
|
198
|
+
oklch(0.964 0.051 93),
|
|
199
|
+
oklch(0.28 0.056 91)
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@media (prefers-contrast: more) {
|
|
204
|
+
:where(
|
|
205
|
+
html:not(.ui-contrast-normal),
|
|
206
|
+
html:not(.ui-contrast-normal) .ui-palette
|
|
207
|
+
) {
|
|
208
|
+
--ui-border-color: revert-layer;
|
|
209
|
+
--ui-field-border-color: revert-layer;
|
|
210
|
+
--ui-field-helper-text-color: revert-layer;
|
|
211
|
+
--ui-focus-ring-color: revert-layer;
|
|
212
|
+
--ui-text-subtle: revert-layer;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:where(.ui-contrast-more, .ui-contrast-more .ui-palette) {
|
|
217
|
+
--ui-border-color: revert-layer;
|
|
218
|
+
--ui-field-border-color: revert-layer;
|
|
219
|
+
--ui-field-helper-text-color: revert-layer;
|
|
220
|
+
--ui-focus-ring-color: revert-layer;
|
|
221
|
+
--ui-text-subtle: revert-layer;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@layer openprops, theme, normalize, components.prose, components.root, components.extended, components.compat, utils;
|
|
2
|
+
@layer theme.palette, theme.base, theme.custom, theme.severity;
|
|
3
|
+
|
|
4
|
+
@layer theme.custom {
|
|
5
|
+
:where(html, .ui-palette, .ui-contrast-more) {
|
|
6
|
+
--ui-backdrop-bg-color: oklch(0 0 0 / 0.8);
|
|
7
|
+
--ui-backdrop-blur: 0px;
|
|
8
|
+
--ui-border-color: oklch(0 0 0);
|
|
9
|
+
--ui-border-color-on-filled: var(--ui-border-color);
|
|
10
|
+
--ui-radius: 5px;
|
|
11
|
+
--ui-radius-x-small: var(--ui-radius);
|
|
12
|
+
--ui-border-width: 2px;
|
|
13
|
+
--ui-control-border-color: var(--ui-border-color);
|
|
14
|
+
--ui-control-border-color-filled: var(--ui-border-color);
|
|
15
|
+
--ui-control-size-large: calc(44px * var(--ui-density));
|
|
16
|
+
--ui-control-size-small: calc(36px * var(--ui-density));
|
|
17
|
+
--ui-button-accent-filled: var(--ui-primary);
|
|
18
|
+
--ui-button-on-accent-filled: var(--ui-on-primary);
|
|
19
|
+
--ui-button-font-weight: 500;
|
|
20
|
+
--ui-button-hover: layer;
|
|
21
|
+
--ui-button-hover-shadow: none;
|
|
22
|
+
--ui-button-hover-translate: 4px 4px;
|
|
23
|
+
--ui-button-padding-inline: 1rem;
|
|
24
|
+
--ui-button-padding-inline-large: 2rem;
|
|
25
|
+
--ui-button-padding-inline-small: 0.75rem;
|
|
26
|
+
--ui-button-padding-inline-x-small: 0.5rem;
|
|
27
|
+
--ui-card-padding: 1.5rem;
|
|
28
|
+
--ui-choice-accent: var(--ui-primary);
|
|
29
|
+
--ui-choice-on-accent: var(--ui-on-primary);
|
|
30
|
+
--ui-choice-ripple-bg-color: transparent;
|
|
31
|
+
--ui-choice-size: calc(16px * var(--ui-density));
|
|
32
|
+
--ui-disabled-opacity: 0.5;
|
|
33
|
+
--ui-duration-fast: 0.15s;
|
|
34
|
+
--ui-field-bg-color: var(--ui-surface-elevated);
|
|
35
|
+
--ui-field-border-color: var(--ui-border-color);
|
|
36
|
+
--ui-field-border-color-on-filled: var(--ui-border-color);
|
|
37
|
+
--ui-field-border-width: 2px;
|
|
38
|
+
--ui-field-padding-inline: 0.75rem;
|
|
39
|
+
--ui-field-placeholder-text-color: color-mix(
|
|
40
|
+
in oklch,
|
|
41
|
+
var(--ui-text) 60%,
|
|
42
|
+
transparent
|
|
43
|
+
);
|
|
44
|
+
--ui-field-label-font-weight: 700;
|
|
45
|
+
--ui-focus-ring-color: light-dark(oklch(0 0 0), oklch(1 0 0));
|
|
46
|
+
--ui-font-body:
|
|
47
|
+
"DM Sans", Avenir, Montserrat, Corbel, URW Gothic, source-sans-pro,
|
|
48
|
+
sans-serif;
|
|
49
|
+
--ui-font-size-control: 0.875rem;
|
|
50
|
+
--ui-font-weight-bold: 700;
|
|
51
|
+
--ui-font-weight-normal: 500;
|
|
52
|
+
--ui-font-weight-semibold: 700;
|
|
53
|
+
--ui-gray-chroma: 0.03;
|
|
54
|
+
--ui-gray-hue: 260;
|
|
55
|
+
--ui-letter-spacing-display: 0;
|
|
56
|
+
--ui-letter-spacing-heading: 0;
|
|
57
|
+
--ui-line-height: 1.5;
|
|
58
|
+
--ui-line-height-relaxed: 1.5;
|
|
59
|
+
--ui-list-item-padding-inline: 0.5rem;
|
|
60
|
+
--ui-on-inverse: var(--ui-on-primary);
|
|
61
|
+
--ui-palette-source: oklch(0.675 0.1725 259.5);
|
|
62
|
+
--ui-primary-source: oklch(0.675 0.1725 259.5);
|
|
63
|
+
--ui-primary-text: var(--ui-text);
|
|
64
|
+
--ui-selected: var(--ui-primary);
|
|
65
|
+
--ui-on-selected: var(--ui-on-primary);
|
|
66
|
+
--ui-shadow-control: 4px 4px 0 0 oklch(0 0 0);
|
|
67
|
+
--ui-shadow-field: none;
|
|
68
|
+
--ui-shadow-overlay: var(--ui-shadow-control);
|
|
69
|
+
--ui-shadow-elevated: var(--ui-shadow-control);
|
|
70
|
+
--ui-shadow-scroll: 0 2px 0 0 oklch(0 0 0);
|
|
71
|
+
--ui-shadow-surface: var(--ui-shadow-control);
|
|
72
|
+
--ui-shadow-selected: none;
|
|
73
|
+
--ui-border-color-raised: var(--ui-border-color);
|
|
74
|
+
--ui-surface: light-dark(oklch(0.92 0.019 266), oklch(0.283 0.019 276));
|
|
75
|
+
--ui-surface-elevated: light-dark(oklch(1 0 0), oklch(0.248 0 0));
|
|
76
|
+
--ui-surface-filled: light-dark(oklch(1 0 0), oklch(0.248 0 0));
|
|
77
|
+
--ui-surface-inverse: var(--ui-primary);
|
|
78
|
+
--ui-surface-tonal: light-dark(
|
|
79
|
+
oklch(0.852 0.073 260),
|
|
80
|
+
oklch(0.34 0.04 270)
|
|
81
|
+
);
|
|
82
|
+
--ui-switch-thumb-bg-color: var(--ui-text);
|
|
83
|
+
--ui-text: light-dark(oklch(0 0 0), oklch(0.925 0 0));
|
|
84
|
+
--ui-text-strong: var(--ui-text);
|
|
85
|
+
--ui-track-bg-color: var(--ui-surface-elevated);
|
|
86
|
+
--ui-underline-thickness-hover: auto;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.ui-critical, .ui-info, .ui-neutral, .ui-success, .ui-warning) {
|
|
90
|
+
--ui-palette-border: var(--ui-border-color);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media (prefers-contrast: more) {
|
|
94
|
+
:where(
|
|
95
|
+
html:not(.ui-contrast-normal),
|
|
96
|
+
html:not(.ui-contrast-normal) .ui-palette
|
|
97
|
+
) {
|
|
98
|
+
--ui-border-color: var(--ui-text);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:where(.ui-contrast-more, .ui-contrast-more .ui-palette) {
|
|
103
|
+
--ui-border-color: var(--ui-text);
|
|
104
|
+
}
|
|
105
|
+
}
|