From 1c81f3bd14c1f202eec2341aec1888fb74d956d5 Mon Sep 17 00:00:00 2001 From: Vincent Smedinga Date: Tue, 12 Mar 2024 12:50:52 +0100 Subject: [PATCH] feat!: Shorten namespaces in theme and tokens (#1125) --- .stylelintrc.json | 10 +- packages/css/README.md | 4 +- .../css/documentation/coding-conventions.md | 4 +- packages/css/src/common/breakpoint.scss | 4 +- packages/css/src/common/hyphenation.scss | 6 +- packages/css/src/common/size.scss | 2 +- .../src/components/accordion/accordion.scss | 32 ++-- packages/css/src/components/alert/alert.scss | 30 ++-- .../components/aspect-ratio/aspect-ratio.scss | 26 +-- packages/css/src/components/badge/badge.scss | 60 +++---- .../src/components/blockquote/blockquote.scss | 16 +- .../src/components/breadcrumb/breadcrumb.scss | 34 ++-- .../css/src/components/button/button.scss | 74 ++++---- packages/css/src/components/card/card.scss | 20 +-- .../css/src/components/checkbox/checkbox.scss | 162 +++++++++--------- .../css/src/components/column/column.scss | 8 +- .../css/src/components/dialog/dialog.scss | 42 ++--- .../css/src/components/fieldset/fieldset.scss | 14 +- .../src/components/form-label/form-label.scss | 12 +- packages/css/src/components/gap/gap.scss | 8 +- packages/css/src/components/grid/grid.scss | 82 ++++----- .../css/src/components/header/header.scss | 42 ++--- .../css/src/components/heading/heading.scss | 48 +++--- .../components/icon-button/icon-button.scss | 36 ++-- packages/css/src/components/icon/icon.scss | 46 ++--- packages/css/src/components/image/image.scss | 2 +- .../src/components/link-list/link-list.scss | 54 +++--- packages/css/src/components/link/link.scss | 64 +++---- packages/css/src/components/logo/logo.scss | 16 +- .../css/src/components/margin/margin.scss | 6 +- packages/css/src/components/mark/mark.scss | 4 +- .../src/components/mega-menu/mega-menu.scss | 10 +- .../components/ordered-list/ordered-list.scss | 38 ++-- .../css/src/components/overlap/overlap.scss | 2 +- .../components/page-heading/page-heading.scss | 16 +- .../src/components/page-menu/page-menu.scss | 40 ++--- .../src/components/pagination/pagination.scss | 34 ++-- .../src/components/paragraph/paragraph.scss | 28 +-- packages/css/src/components/radio/radio.scss | 96 +++++------ packages/css/src/components/row/row.scss | 8 +- .../css/src/components/screen/screen.scss | 10 +- .../components/search-field/search-field.scss | 50 +++--- .../src/components/skip-link/skip-link.scss | 22 +-- .../src/components/spotlight/spotlight.scss | 32 ++-- .../css/src/components/switch/switch.scss | 36 ++-- packages/css/src/components/table/table.scss | 32 ++-- packages/css/src/components/tabs/tabs.scss | 40 ++--- .../src/components/text-area/text-area.scss | 54 +++--- .../src/components/text-input/text-input.scss | 42 ++--- .../top-task-link/top-task-link.scss | 40 ++--- .../unordered-list/unordered-list.scss | 38 ++-- .../visually-hidden/visually-hidden.scss | 2 +- .../react/documentation/coding-conventions.md | 2 +- .../react/src/Accordion/Accordion.test.tsx | 6 +- packages/react/src/Accordion/Accordion.tsx | 2 +- .../src/Accordion/AccordionSection.test.tsx | 20 +-- .../react/src/Accordion/AccordionSection.tsx | 10 +- packages/react/src/Alert/Alert.test.tsx | 10 +- packages/react/src/Alert/Alert.tsx | 10 +- .../src/AspectRatio/AspectRatio.test.tsx | 14 +- .../react/src/AspectRatio/AspectRatio.tsx | 6 +- packages/react/src/Badge/Badge.test.tsx | 8 +- packages/react/src/Badge/Badge.tsx | 2 +- .../react/src/Blockquote/Blockquote.test.tsx | 6 +- packages/react/src/Blockquote/Blockquote.tsx | 2 +- .../react/src/Breadcrumb/Breadcrumb.test.tsx | 6 +- packages/react/src/Breadcrumb/Breadcrumb.tsx | 4 +- .../src/Breadcrumb/BreadcrumbItem.test.tsx | 6 +- .../react/src/Breadcrumb/BreadcrumbItem.tsx | 4 +- packages/react/src/Button/Button.test.tsx | 10 +- packages/react/src/Button/Button.tsx | 2 +- packages/react/src/Card/Card.test.tsx | 4 +- packages/react/src/Card/Card.tsx | 2 +- .../react/src/Card/CardHeadingGroup.test.tsx | 4 +- packages/react/src/Card/CardHeadingGroup.tsx | 2 +- packages/react/src/Card/CardLink.test.tsx | 4 +- packages/react/src/Card/CardLink.tsx | 2 +- packages/react/src/Checkbox/Checkbox.test.tsx | 8 +- packages/react/src/Checkbox/Checkbox.tsx | 8 +- packages/react/src/Column/Column.test.tsx | 6 +- packages/react/src/Column/Column.tsx | 2 +- packages/react/src/Dialog/Dialog.test.tsx | 4 +- packages/react/src/Dialog/Dialog.tsx | 12 +- packages/react/src/Fieldset/Fieldset.test.tsx | 6 +- packages/react/src/Fieldset/Fieldset.tsx | 4 +- packages/react/src/Footer/Footer.test.tsx | 4 +- packages/react/src/Footer/Footer.tsx | 2 +- .../react/src/Footer/FooterBottom.test.tsx | 4 +- packages/react/src/Footer/FooterBottom.tsx | 2 +- packages/react/src/Footer/FooterTop.test.tsx | 4 +- packages/react/src/Footer/FooterTop.tsx | 2 +- .../react/src/FormLabel/FormLabel.test.tsx | 4 +- packages/react/src/FormLabel/FormLabel.tsx | 2 +- packages/react/src/Grid/Grid.test.tsx | 16 +- packages/react/src/Grid/Grid.tsx | 10 +- packages/react/src/Grid/GridCell.test.tsx | 22 +-- packages/react/src/Grid/GridCell.tsx | 2 +- packages/react/src/Grid/gridCellClasses.ts | 16 +- packages/react/src/Header/Header.test.tsx | 6 +- packages/react/src/Header/Header.tsx | 12 +- packages/react/src/Heading/Heading.test.tsx | 16 +- packages/react/src/Heading/Heading.tsx | 6 +- packages/react/src/Icon/Icon.test.tsx | 14 +- packages/react/src/Icon/Icon.tsx | 12 +- .../react/src/IconButton/IconButton.test.tsx | 8 +- packages/react/src/IconButton/IconButton.tsx | 6 +- packages/react/src/Image/Image.test.tsx | 4 +- packages/react/src/Image/Image.tsx | 2 +- packages/react/src/Link/Link.test.tsx | 10 +- packages/react/src/Link/Link.tsx | 10 +- packages/react/src/LinkList/LinkList.test.tsx | 4 +- packages/react/src/LinkList/LinkList.tsx | 2 +- .../react/src/LinkList/LinkListLink.test.tsx | 8 +- packages/react/src/LinkList/LinkListLink.tsx | 6 +- packages/react/src/Logo/Logo.test.tsx | 4 +- packages/react/src/Logo/Logo.tsx | 2 +- .../react/src/Logo/brand/LogoAmsterdam.tsx | 6 +- .../react/src/Logo/brand/LogoGgdAmsterdam.tsx | 8 +- .../react/src/Logo/brand/LogoMuseumWeesp.tsx | 12 +- .../react/src/Logo/brand/LogoStadsarchief.tsx | 8 +- .../src/Logo/brand/LogoStadsbankVanLening.tsx | 8 +- .../src/Logo/brand/LogoVgaVerzekeringen.tsx | 8 +- packages/react/src/Mark/Mark.test.tsx | 4 +- packages/react/src/Mark/Mark.tsx | 2 +- packages/react/src/MegaMenu/MegaMenu.test.tsx | 4 +- packages/react/src/MegaMenu/MegaMenu.tsx | 2 +- .../MegaMenu/MegaMenuListCategory.test.tsx | 4 +- .../src/MegaMenu/MegaMenuListCategory.tsx | 2 +- .../src/OrderedList/OrderedList.test.tsx | 10 +- .../react/src/OrderedList/OrderedList.tsx | 6 +- .../src/OrderedList/OrderedListItem.test.tsx | 4 +- .../react/src/OrderedList/OrderedListItem.tsx | 2 +- packages/react/src/Overlap/Overlap.test.tsx | 4 +- packages/react/src/Overlap/Overlap.tsx | 2 +- .../src/PageHeading/PageHeading.test.tsx | 6 +- .../react/src/PageHeading/PageHeading.tsx | 2 +- packages/react/src/PageMenu/PageMenu.test.tsx | 6 +- packages/react/src/PageMenu/PageMenu.tsx | 6 +- .../react/src/PageMenu/PageMenuLink.test.tsx | 8 +- packages/react/src/PageMenu/PageMenuLink.tsx | 2 +- .../react/src/Pagination/Pagination.test.tsx | 4 +- packages/react/src/Pagination/Pagination.tsx | 12 +- .../react/src/Paragraph/Paragraph.test.tsx | 14 +- packages/react/src/Paragraph/Paragraph.tsx | 6 +- packages/react/src/Radio/Radio.test.tsx | 8 +- packages/react/src/Radio/Radio.tsx | 8 +- packages/react/src/Row/Row.test.tsx | 6 +- packages/react/src/Row/Row.tsx | 2 +- packages/react/src/Screen/Screen.test.tsx | 6 +- packages/react/src/Screen/Screen.tsx | 2 +- .../src/SearchField/SearchField.test.tsx | 4 +- .../react/src/SearchField/SearchField.tsx | 2 +- .../src/SearchField/SearchFieldButton.tsx | 2 +- .../src/SearchField/SearchFieldInput.test.tsx | 4 +- .../src/SearchField/SearchFieldInput.tsx | 2 +- packages/react/src/SkipLink/SkipLink.test.tsx | 4 +- packages/react/src/SkipLink/SkipLink.tsx | 2 +- .../react/src/Spotlight/Spotlight.test.tsx | 6 +- packages/react/src/Spotlight/Spotlight.tsx | 2 +- packages/react/src/Switch/Switch.test.tsx | 4 +- packages/react/src/Switch/Switch.tsx | 13 +- packages/react/src/Table/Table.test.tsx | 4 +- packages/react/src/Table/Table.tsx | 4 +- packages/react/src/Table/TableBody.test.tsx | 4 +- packages/react/src/Table/TableBody.tsx | 2 +- .../react/src/Table/TableCaption.test.tsx | 4 +- packages/react/src/Table/TableCaption.tsx | 2 +- packages/react/src/Table/TableCell.test.tsx | 4 +- packages/react/src/Table/TableCell.tsx | 2 +- packages/react/src/Table/TableFooter.test.tsx | 4 +- packages/react/src/Table/TableFooter.tsx | 2 +- packages/react/src/Table/TableHeader.test.tsx | 4 +- packages/react/src/Table/TableHeader.tsx | 2 +- .../react/src/Table/TableHeaderCell.test.tsx | 4 +- packages/react/src/Table/TableHeaderCell.tsx | 2 +- packages/react/src/Table/TableRow.test.tsx | 4 +- packages/react/src/Table/TableRow.tsx | 2 +- packages/react/src/Tabs/Tabs.test.tsx | 4 +- packages/react/src/Tabs/Tabs.tsx | 8 +- packages/react/src/Tabs/TabsButton.test.tsx | 4 +- packages/react/src/Tabs/TabsButton.tsx | 2 +- packages/react/src/Tabs/TabsList.test.tsx | 6 +- packages/react/src/Tabs/TabsList.tsx | 2 +- packages/react/src/Tabs/TabsPanel.test.tsx | 6 +- packages/react/src/Tabs/TabsPanel.tsx | 2 +- packages/react/src/TextArea/TextArea.test.tsx | 12 +- packages/react/src/TextArea/TextArea.tsx | 6 +- .../react/src/TextInput/TextInput.test.tsx | 4 +- packages/react/src/TextInput/TextInput.tsx | 2 +- .../src/TopTaskLink/TopTaskLink.test.tsx | 8 +- .../react/src/TopTaskLink/TopTaskLink.tsx | 6 +- .../src/UnorderedList/UnorderedList.test.tsx | 10 +- .../react/src/UnorderedList/UnorderedList.tsx | 6 +- .../UnorderedList/UnorderedListItem.test.tsx | 4 +- .../src/UnorderedList/UnorderedListItem.tsx | 2 +- .../VisuallyHidden/VisuallyHidden.test.tsx | 4 +- .../src/VisuallyHidden/VisuallyHidden.tsx | 2 +- plop-templates/react.test.tsx.hbs | 4 +- plop-templates/react.tsx.hbs | 2 +- plop-templates/style.scss.hbs | 2 +- plop-templates/tokens.json.hbs | 2 +- plopfile.mjs | 2 +- proprietary/assets/logo/amsterdam.svg | 4 +- proprietary/assets/logo/ggd-amsterdam.svg | 6 +- proprietary/assets/logo/museum_weesp.svg | 10 +- proprietary/assets/logo/stadsarchief.svg | 6 +- .../assets/logo/stadsbank-van-lening.svg | 6 +- proprietary/assets/logo/vga-verzekeringen.svg | 6 +- proprietary/tokens/build.js | 2 +- .../{amsterdam => ams}/color.tokens.json | 2 +- .../{amsterdam => ams}/proportion.tokens.json | 2 +- .../space.compact.tokens.json | 2 +- .../{amsterdam => ams}/space.tokens.json | 2 +- .../text.compact.tokens.json} | 6 +- .../text.tokens.json} | 6 +- .../{amsterdam => ams}/action.tokens.json | 2 +- .../{amsterdam => ams}/border.tokens.json | 2 +- .../{amsterdam => ams}/focus.tokens.json | 2 +- .../hyphenation.tokens.json | 2 +- .../link-appearance.tokens.json | 10 +- .../src/components/ams/accordion.tokens.json | 25 +++ .../src/components/ams/alert.tokens.json | 29 ++++ .../components/ams/aspect-ratio.tokens.json | 12 ++ .../src/components/ams/badge.tokens.json | 43 +++++ .../src/components/ams/blockquote.tokens.json | 12 ++ .../src/components/ams/breadcrumb.tokens.json | 26 +++ .../src/components/ams/button.tokens.json | 59 +++++++ .../src/components/ams/card.tokens.json | 17 ++ .../src/components/ams/checkbox.tokens.json | 75 ++++++++ .../src/components/ams/column.tokens.json | 13 ++ .../{amsterdam => ams}/dialog.tokens.json | 14 +- .../src/components/ams/fieldset.tokens.json | 13 ++ .../src/components/ams/form-label.tokens.json | 11 ++ .../tokens/src/components/ams/gap.tokens.json | 11 ++ .../components/ams/grid.compact.tokens.json | 7 + .../src/components/ams/grid.tokens.json | 25 +++ .../src/components/ams/header.tokens.json | 14 ++ .../src/components/ams/heading.tokens.json | 36 ++++ .../components/ams/icon-button.tokens.json | 37 ++++ .../src/components/ams/icon.tokens.json | 22 +++ .../src/components/ams/link-list.tokens.json | 45 +++++ .../src/components/ams/link.tokens.json | 61 +++++++ .../src/components/ams/logo.tokens.json | 10 ++ .../src/components/ams/margin.tokens.json | 11 ++ .../src/components/ams/mark.tokens.json | 7 + .../src/components/ams/mega-menu.tokens.json | 18 ++ .../ordered-list.tokens.json | 14 +- .../components/ams/page-heading.tokens.json | 12 ++ .../src/components/ams/page-menu.tokens.json | 24 +++ .../src/components/ams/pagination.tokens.json | 25 +++ .../src/components/ams/paragraph.tokens.json | 22 +++ .../{amsterdam => ams}/radio.tokens.json | 28 +-- .../tokens/src/components/ams/row.tokens.json | 13 ++ .../{amsterdam => ams}/screen.tokens.json | 2 +- .../components/ams/search-field.tokens.json | 45 +++++ .../src/components/ams/skip-link.tokens.json | 18 ++ .../src/components/ams/spotlight.tokens.json | 30 ++++ .../src/components/ams/switch.tokens.json | 24 +++ .../src/components/ams/table.tokens.json | 22 +++ .../src/components/ams/tabs.tokens.json | 34 ++++ .../src/components/ams/text-area.tokens.json | 36 ++++ .../src/components/ams/text-input.tokens.json | 32 ++++ .../components/ams/top-task-link.tokens.json | 28 +++ .../unordered-list.tokens.json | 14 +- .../amsterdam/accordion.tokens.json | 25 --- .../components/amsterdam/alert.tokens.json | 29 ---- .../amsterdam/aspect-ratio.tokens.json | 12 -- .../components/amsterdam/badge.tokens.json | 43 ----- .../amsterdam/blockquote.tokens.json | 12 -- .../amsterdam/breadcrumb.tokens.json | 26 --- .../components/amsterdam/button.tokens.json | 59 ------- .../src/components/amsterdam/card.tokens.json | 17 -- .../components/amsterdam/checkbox.tokens.json | 75 -------- .../components/amsterdam/column.tokens.json | 13 -- .../components/amsterdam/fieldset.tokens.json | 13 -- .../amsterdam/form-label.tokens.json | 11 -- .../src/components/amsterdam/gap.tokens.json | 11 -- .../amsterdam/grid.compact.tokens.json | 7 - .../src/components/amsterdam/grid.tokens.json | 25 --- .../components/amsterdam/header.tokens.json | 14 -- .../components/amsterdam/heading.tokens.json | 34 ---- .../amsterdam/icon-button.tokens.json | 37 ---- .../src/components/amsterdam/icon.tokens.json | 22 --- .../amsterdam/link-list.tokens.json | 45 ----- .../src/components/amsterdam/link.tokens.json | 61 ------- .../src/components/amsterdam/logo.tokens.json | 10 -- .../components/amsterdam/margin.tokens.json | 11 -- .../src/components/amsterdam/mark.tokens.json | 7 - .../amsterdam/mega-menu.tokens.json | 18 -- .../amsterdam/page-heading.tokens.json | 12 -- .../amsterdam/page-menu.tokens.json | 24 --- .../amsterdam/pagination.tokens.json | 25 --- .../amsterdam/paragraph.tokens.json | 22 --- .../src/components/amsterdam/row.tokens.json | 13 -- .../amsterdam/search-field.tokens.json | 45 ----- .../amsterdam/skip-link.tokens.json | 18 -- .../amsterdam/spotlight.tokens.json | 30 ---- .../components/amsterdam/switch.tokens.json | 24 --- .../components/amsterdam/table.tokens.json | 22 --- .../src/components/amsterdam/tabs.tokens.json | 34 ---- .../amsterdam/text-area.tokens.json | 36 ---- .../amsterdam/text-input.tokens.json | 32 ---- .../amsterdam/top-task-link.tokens.json | 28 --- storybook/config/preview-body.html | 14 +- storybook/config/preview.tsx | 2 +- .../Blockquote/Blockquote.stories.tsx | 4 +- .../src/components/Column/Column.docs.mdx | 2 +- .../src/components/Column/Column.stories.tsx | 2 +- .../src/components/Dialog/Dialog.docs.mdx | 2 +- .../src/components/Grid/Grid.stories.tsx | 22 +-- .../src/components/Header/Header.stories.tsx | 12 +- .../components/Heading/Heading.stories.tsx | 4 +- .../src/components/Logo/Logo.stories.tsx | 2 +- .../OrderedList/OrderedList.stories.tsx | 2 +- .../Paragraph/Paragraph.stories.tsx | 4 +- .../src/components/Screen/Screen.stories.tsx | 4 +- .../UnorderedList/UnorderedList.stories.tsx | 18 +- .../src/components/shared/exampleContent.ts | 2 +- storybook/src/docs/breakpoints.docs.mdx | 2 +- storybook/src/docs/color.docs.mdx | 30 ++-- .../src/docs/components/ColorPalette.tsx | 14 +- .../src/docs/components/color-palette.css | 20 +-- 322 files changed, 2372 insertions(+), 2405 deletions(-) rename proprietary/tokens/src/brand/{amsterdam => ams}/color.tokens.json (97%) rename proprietary/tokens/src/brand/{amsterdam => ams}/proportion.tokens.json (93%) rename proprietary/tokens/src/brand/{amsterdam => ams}/space.compact.tokens.json (97%) rename proprietary/tokens/src/brand/{amsterdam => ams}/space.tokens.json (98%) rename proprietary/tokens/src/brand/{amsterdam/typography.compact.tokens.json => ams/text.compact.tokens.json} (93%) rename proprietary/tokens/src/brand/{amsterdam/typography.tokens.json => ams/text.tokens.json} (95%) rename proprietary/tokens/src/common/{amsterdam => ams}/action.tokens.json (95%) rename proprietary/tokens/src/common/{amsterdam => ams}/border.tokens.json (88%) rename proprietary/tokens/src/common/{amsterdam => ams}/focus.tokens.json (80%) rename proprietary/tokens/src/common/{amsterdam => ams}/hyphenation.tokens.json (91%) rename proprietary/tokens/src/common/{amsterdam => ams}/link-appearance.tokens.json (71%) create mode 100644 proprietary/tokens/src/components/ams/accordion.tokens.json create mode 100644 proprietary/tokens/src/components/ams/alert.tokens.json create mode 100644 proprietary/tokens/src/components/ams/aspect-ratio.tokens.json create mode 100644 proprietary/tokens/src/components/ams/badge.tokens.json create mode 100644 proprietary/tokens/src/components/ams/blockquote.tokens.json create mode 100644 proprietary/tokens/src/components/ams/breadcrumb.tokens.json create mode 100644 proprietary/tokens/src/components/ams/button.tokens.json create mode 100644 proprietary/tokens/src/components/ams/card.tokens.json create mode 100644 proprietary/tokens/src/components/ams/checkbox.tokens.json create mode 100644 proprietary/tokens/src/components/ams/column.tokens.json rename proprietary/tokens/src/components/{amsterdam => ams}/dialog.tokens.json (55%) create mode 100644 proprietary/tokens/src/components/ams/fieldset.tokens.json create mode 100644 proprietary/tokens/src/components/ams/form-label.tokens.json create mode 100644 proprietary/tokens/src/components/ams/gap.tokens.json create mode 100644 proprietary/tokens/src/components/ams/grid.compact.tokens.json create mode 100644 proprietary/tokens/src/components/ams/grid.tokens.json create mode 100644 proprietary/tokens/src/components/ams/header.tokens.json create mode 100644 proprietary/tokens/src/components/ams/heading.tokens.json create mode 100644 proprietary/tokens/src/components/ams/icon-button.tokens.json create mode 100644 proprietary/tokens/src/components/ams/icon.tokens.json create mode 100644 proprietary/tokens/src/components/ams/link-list.tokens.json create mode 100644 proprietary/tokens/src/components/ams/link.tokens.json create mode 100644 proprietary/tokens/src/components/ams/logo.tokens.json create mode 100644 proprietary/tokens/src/components/ams/margin.tokens.json create mode 100644 proprietary/tokens/src/components/ams/mark.tokens.json create mode 100644 proprietary/tokens/src/components/ams/mega-menu.tokens.json rename proprietary/tokens/src/components/{amsterdam => ams}/ordered-list.tokens.json (67%) create mode 100644 proprietary/tokens/src/components/ams/page-heading.tokens.json create mode 100644 proprietary/tokens/src/components/ams/page-menu.tokens.json create mode 100644 proprietary/tokens/src/components/ams/pagination.tokens.json create mode 100644 proprietary/tokens/src/components/ams/paragraph.tokens.json rename proprietary/tokens/src/components/{amsterdam => ams}/radio.tokens.json (65%) create mode 100644 proprietary/tokens/src/components/ams/row.tokens.json rename proprietary/tokens/src/components/{amsterdam => ams}/screen.tokens.json (90%) create mode 100644 proprietary/tokens/src/components/ams/search-field.tokens.json create mode 100644 proprietary/tokens/src/components/ams/skip-link.tokens.json create mode 100644 proprietary/tokens/src/components/ams/spotlight.tokens.json create mode 100644 proprietary/tokens/src/components/ams/switch.tokens.json create mode 100644 proprietary/tokens/src/components/ams/table.tokens.json create mode 100644 proprietary/tokens/src/components/ams/tabs.tokens.json create mode 100644 proprietary/tokens/src/components/ams/text-area.tokens.json create mode 100644 proprietary/tokens/src/components/ams/text-input.tokens.json create mode 100644 proprietary/tokens/src/components/ams/top-task-link.tokens.json rename proprietary/tokens/src/components/{amsterdam => ams}/unordered-list.tokens.json (67%) delete mode 100644 proprietary/tokens/src/components/amsterdam/accordion.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/alert.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/aspect-ratio.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/badge.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/blockquote.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/breadcrumb.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/button.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/card.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/checkbox.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/column.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/fieldset.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/form-label.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/gap.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/grid.compact.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/grid.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/header.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/heading.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/icon-button.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/icon.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/link-list.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/link.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/logo.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/margin.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/mark.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/mega-menu.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/page-heading.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/page-menu.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/pagination.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/paragraph.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/row.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/search-field.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/skip-link.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/spotlight.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/switch.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/table.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/tabs.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/text-area.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/text-input.tokens.json delete mode 100644 proprietary/tokens/src/components/amsterdam/top-task-link.tokens.json diff --git a/.stylelintrc.json b/.stylelintrc.json index 30258e3cdd..3fbc98ab7e 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -9,7 +9,7 @@ "color-function-notation": ["modern"], "color-no-invalid-hex": true, "comment-no-empty": true, - "custom-property-pattern": "^_?(amsterdam|nl|utrecht)-[a-z0-9-]+$", + "custom-property-pattern": "^_?(ams|nl|utrecht)-[a-z0-9-]+$", "declaration-block-no-duplicate-properties": true, "declaration-block-no-redundant-longhand-properties": null, "declaration-block-no-shorthand-property-overrides": true, @@ -33,7 +33,7 @@ "function-url-quotes": "always", "hue-degree-notation": ["number"], "keyframe-declaration-no-important": true, - "keyframes-name-pattern": "^(amsterdam|nl|utrecht)-[a-z0-9-]+$", + "keyframes-name-pattern": "^(ams|nl|utrecht)-[a-z0-9-]+$", "length-zero-no-unit": [ true, { @@ -76,15 +76,15 @@ } ], "scss/dollar-variable-pattern": [ - "^(amsterdam)-[a-z0-9-]+$", + "^(ams)-[a-z0-9-]+$", { "ignore": "local" } ], "scss/operator-no-newline-after": null, - "scss/percent-placeholder-pattern": "^(amsterdam|nl|utrecht)-[a-z0-9-]+$", + "scss/percent-placeholder-pattern": "^(ams|nl|utrecht)-[a-z0-9-]+$", "selector-attribute-quotes": "always", - "selector-class-pattern": "^(amsterdam|nl|utrecht)-[a-z0-9_-]+$", + "selector-class-pattern": "^(ams|nl|utrecht)-[a-z0-9_-]+$", "selector-max-id": [0], "selector-pseudo-class-no-unknown": true, "selector-pseudo-element-no-unknown": true, diff --git a/packages/css/README.md b/packages/css/README.md index 72db8a0eec..086da55fca 100644 --- a/packages/css/README.md +++ b/packages/css/README.md @@ -17,7 +17,7 @@ Theoretically you can include the components in your HTML page like so, but this -

Hello, world!

+

Hello, world!

``` @@ -32,7 +32,7 @@ export default class ExamplePage extends React.Component { render() { return ( <> -

Hello, world!

+

Hello, world!

); } diff --git a/packages/css/documentation/coding-conventions.md b/packages/css/documentation/coding-conventions.md index 2b8820b760..c7718c6cab 100644 --- a/packages/css/documentation/coding-conventions.md +++ b/packages/css/documentation/coding-conventions.md @@ -11,7 +11,7 @@ This link receives an underline when the user’s pointer hovers over it. Still, we define its thickness and offset for the initial state. ```css -.amsterdam-link { +.ams-link { text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: 3px; @@ -25,7 +25,7 @@ Still, we define its thickness and offset for the initial state. ### Do not do this ```css -.amsterdam-link { +.ams-link { text-decoration: none; &:hover { diff --git a/packages/css/src/common/breakpoint.scss b/packages/css/src/common/breakpoint.scss index 9ac1920456..aef812e1a6 100644 --- a/packages/css/src/common/breakpoint.scss +++ b/packages/css/src/common/breakpoint.scss @@ -9,7 +9,7 @@ */ /** The breakpoint at which medium screens start. */ -$amsterdam-breakpoint-medium: 36rem; +$ams-breakpoint-medium: 36rem; /** The breakpoint at which wide screens start. */ -$amsterdam-breakpoint-wide: 68rem; +$ams-breakpoint-wide: 68rem; diff --git a/packages/css/src/common/hyphenation.scss b/packages/css/src/common/hyphenation.scss index eeb41efa58..24889a457f 100644 --- a/packages/css/src/common/hyphenation.scss +++ b/packages/css/src/common/hyphenation.scss @@ -4,7 +4,7 @@ */ @mixin hyphenation { - hyphenate-limit-chars: var(--amsterdam-hyphenation-hyphenate-limit-chars); - hyphens: var(--amsterdam-hyphenation-hyphens); - overflow-wrap: var(--amsterdam-hyphenation-overflow-wrap); + hyphenate-limit-chars: var(--ams-hyphenation-hyphenate-limit-chars); + hyphens: var(--ams-hyphenation-hyphens); + overflow-wrap: var(--ams-hyphenation-overflow-wrap); } diff --git a/packages/css/src/common/size.scss b/packages/css/src/common/size.scss index 26f6777caf..077430ca53 100644 --- a/packages/css/src/common/size.scss +++ b/packages/css/src/common/size.scss @@ -4,7 +4,7 @@ */ /** The set of available options for sizing. */ -$amsterdam-sizes: ( +$ams-sizes: ( "xs": "extra-small", "sm": "small", "md": "medium", diff --git a/packages/css/src/components/accordion/accordion.scss b/packages/css/src/components/accordion/accordion.scss index a5944a209e..73d0dcae6b 100644 --- a/packages/css/src/components/accordion/accordion.scss +++ b/packages/css/src/components/accordion/accordion.scss @@ -3,7 +3,7 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-accordion__header { +.ams-accordion__header { display: flex; margin-block: 0; margin-inline: 0; @@ -13,27 +13,27 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-accordion__button { +.ams-accordion__button { background-color: transparent; border: 0; - color: var(--amsterdam-accordion-button-color); + color: var(--ams-accordion-button-color); cursor: pointer; display: flex; - font-family: var(--amsterdam-accordion-button-font-family); - font-size: var(--amsterdam-accordion-button-font-size); - font-weight: var(--amsterdam-accordion-button-font-weight); + font-family: var(--ams-accordion-button-font-family); + font-size: var(--ams-accordion-button-font-size); + font-weight: var(--ams-accordion-button-font-weight); justify-content: space-between; - line-height: var(--amsterdam-accordion-button-line-height); - padding-block: var(--amsterdam-accordion-button-padding-block); - padding-inline: var(--amsterdam-accordion-button-padding-inline); + line-height: var(--ams-accordion-button-line-height); + padding-block: var(--ams-accordion-button-padding-block); + padding-inline: var(--ams-accordion-button-padding-inline); width: 100%; &:focus { - outline-offset: var(--amsterdam-accordion-button-focus-outline-offset); + outline-offset: var(--ams-accordion-button-focus-outline-offset); } &:hover { - box-shadow: var(--amsterdam-accordion-button-hover-box-shadow); + box-shadow: var(--ams-accordion-button-hover-box-shadow); } svg { @@ -48,16 +48,16 @@ @include reset; } -.amsterdam-accordion__button[aria-expanded="true"] svg { +.ams-accordion__button[aria-expanded="true"] svg { transform: rotate(180deg); } -.amsterdam-accordion__panel { +.ams-accordion__panel { display: none; - padding-block: var(--amsterdam-accordion-panel-padding-block); - padding-inline: var(--amsterdam-accordion-panel-padding-inline); + padding-block: var(--ams-accordion-panel-padding-block); + padding-inline: var(--ams-accordion-panel-padding-inline); } -.amsterdam-accordion__panel--expanded { +.ams-accordion__panel--expanded { display: block; } diff --git a/packages/css/src/components/alert/alert.scss b/packages/css/src/components/alert/alert.scss index 85c2b17363..ad2e6f2f1d 100644 --- a/packages/css/src/components/alert/alert.scss +++ b/packages/css/src/components/alert/alert.scss @@ -3,34 +3,34 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-alert { +.ams-alert { align-items: flex-start; - border-style: var(--amsterdam-alert-border-style); - border-width: var(--amsterdam-alert-border-width); + border-style: var(--ams-alert-border-style); + border-width: var(--ams-alert-border-width); display: flex; flex-direction: row; - gap: var(--amsterdam-alert-gap); + gap: var(--ams-alert-gap); justify-content: space-between; - padding-block: var(--amsterdam-alert-padding-block); - padding-inline: var(--amsterdam-alert-padding-inline); + padding-block: var(--ams-alert-padding-block); + padding-inline: var(--ams-alert-padding-inline); } -.amsterdam-alert__content { +.ams-alert__content { flex: auto; } -.amsterdam-alert--error { - border-color: var(--amsterdam-alert-error-border-color); +.ams-alert--error { + border-color: var(--ams-alert-error-border-color); } -.amsterdam-alert--info { - border-color: var(--amsterdam-alert-info-border-color); +.ams-alert--info { + border-color: var(--ams-alert-info-border-color); } -.amsterdam-alert--success { - border-color: var(--amsterdam-alert-success-border-color); +.ams-alert--success { + border-color: var(--ams-alert-success-border-color); } -.amsterdam-alert--warning { - border-color: var(--amsterdam-alert-warning-border-color); +.ams-alert--warning { + border-color: var(--ams-alert-warning-border-color); } diff --git a/packages/css/src/components/aspect-ratio/aspect-ratio.scss b/packages/css/src/components/aspect-ratio/aspect-ratio.scss index 17faedfdd2..08fcab0fe0 100644 --- a/packages/css/src/components/aspect-ratio/aspect-ratio.scss +++ b/packages/css/src/components/aspect-ratio/aspect-ratio.scss @@ -3,31 +3,31 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-aspect-ratio { +.ams-aspect-ratio { overflow: hidden; position: relative; } -.amsterdam-aspect-ratio--x-tall { - aspect-ratio: var(--amsterdam-aspect-ratio-x-tall); +.ams-aspect-ratio--x-tall { + aspect-ratio: var(--ams-aspect-ratio-x-tall); } -.amsterdam-aspect-ratio--tall { - aspect-ratio: var(--amsterdam-aspect-ratio-tall); +.ams-aspect-ratio--tall { + aspect-ratio: var(--ams-aspect-ratio-tall); } -.amsterdam-aspect-ratio--square { - aspect-ratio: var(--amsterdam-aspect-ratio-square); +.ams-aspect-ratio--square { + aspect-ratio: var(--ams-aspect-ratio-square); } -.amsterdam-aspect-ratio--wide { - aspect-ratio: var(--amsterdam-aspect-ratio-wide); +.ams-aspect-ratio--wide { + aspect-ratio: var(--ams-aspect-ratio-wide); } -.amsterdam-aspect-ratio--x-wide { - aspect-ratio: var(--amsterdam-aspect-ratio-x-wide); +.ams-aspect-ratio--x-wide { + aspect-ratio: var(--ams-aspect-ratio-x-wide); } -.amsterdam-aspect-ratio--2x-wide { - aspect-ratio: var(--amsterdam-aspect-ratio-2x-wide); +.ams-aspect-ratio--2x-wide { + aspect-ratio: var(--ams-aspect-ratio-2x-wide); } diff --git a/packages/css/src/components/badge/badge.scss b/packages/css/src/components/badge/badge.scss index a3de020358..f25fec491b 100644 --- a/packages/css/src/components/badge/badge.scss +++ b/packages/css/src/components/badge/badge.scss @@ -3,51 +3,51 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-badge { +.ams-badge { display: inline-block; - font-family: var(--amsterdam-badge-font-family); - font-size: var(--amsterdam-badge-font-size); - font-weight: var(--amsterdam-badge-font-weight); - line-height: var(--amsterdam-badge-line-height); - padding-inline: var(--amsterdam-badge-padding-inline); + font-family: var(--ams-badge-font-family); + font-size: var(--ams-badge-font-size); + font-weight: var(--ams-badge-font-weight); + line-height: var(--ams-badge-line-height); + padding-inline: var(--ams-badge-padding-inline); } -.amsterdam-badge--blue { - background-color: var(--amsterdam-badge-blue-background-color); - color: var(--amsterdam-badge-blue-color); +.ams-badge--blue { + background-color: var(--ams-badge-blue-background-color); + color: var(--ams-badge-blue-color); } -.amsterdam-badge--dark-blue { - background-color: var(--amsterdam-badge-dark-blue-background-color); - color: var(--amsterdam-badge-dark-blue-color); +.ams-badge--dark-blue { + background-color: var(--ams-badge-dark-blue-background-color); + color: var(--ams-badge-dark-blue-color); } -.amsterdam-badge--dark-green { - background-color: var(--amsterdam-badge-dark-green-background-color); - color: var(--amsterdam-badge-dark-green-color); +.ams-badge--dark-green { + background-color: var(--ams-badge-dark-green-background-color); + color: var(--ams-badge-dark-green-color); } -.amsterdam-badge--green { - background-color: var(--amsterdam-badge-green-background-color); - color: var(--amsterdam-badge-green-color); +.ams-badge--green { + background-color: var(--ams-badge-green-background-color); + color: var(--ams-badge-green-color); } -.amsterdam-badge--magenta { - background-color: var(--amsterdam-badge-magenta-background-color); - color: var(--amsterdam-badge-magenta-color); +.ams-badge--magenta { + background-color: var(--ams-badge-magenta-background-color); + color: var(--ams-badge-magenta-color); } -.amsterdam-badge--orange { - background-color: var(--amsterdam-badge-orange-background-color); - color: var(--amsterdam-badge-orange-color); +.ams-badge--orange { + background-color: var(--ams-badge-orange-background-color); + color: var(--ams-badge-orange-color); } -.amsterdam-badge--purple { - background-color: var(--amsterdam-badge-purple-background-color); - color: var(--amsterdam-badge-purple-color); +.ams-badge--purple { + background-color: var(--ams-badge-purple-background-color); + color: var(--ams-badge-purple-color); } -.amsterdam-badge--yellow { - background-color: var(--amsterdam-badge-yellow-background-color); - color: var(--amsterdam-badge-yellow-color); +.ams-badge--yellow { + background-color: var(--ams-badge-yellow-background-color); + color: var(--ams-badge-yellow-color); } diff --git a/packages/css/src/components/blockquote/blockquote.scss b/packages/css/src/components/blockquote/blockquote.scss index 69b22f5a26..be5cd0e48a 100644 --- a/packages/css/src/components/blockquote/blockquote.scss +++ b/packages/css/src/components/blockquote/blockquote.scss @@ -12,13 +12,13 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-blockquote { +.ams-blockquote { break-inside: avoid; - color: var(--amsterdam-blockquote-color); - font-family: var(--amsterdam-blockquote-font-family); - font-size: var(--amsterdam-blockquote-font-size); - font-weight: var(--amsterdam-blockquote-font-weight); - line-height: var(--amsterdam-blockquote-line-height); + color: var(--ams-blockquote-color); + font-family: var(--ams-blockquote-font-family); + font-size: var(--ams-blockquote-font-size); + font-weight: var(--ams-blockquote-font-weight); + line-height: var(--ams-blockquote-line-height); quotes: "“" "”"; &::before { @@ -33,6 +33,6 @@ @include reset; } -.amsterdam-blockquote--inverse-color { - color: var(--amsterdam-blockquote-inverse-color); +.ams-blockquote--inverse-color { + color: var(--ams-blockquote-inverse-color); } diff --git a/packages/css/src/components/breadcrumb/breadcrumb.scss b/packages/css/src/components/breadcrumb/breadcrumb.scss index fc3f339b2e..f25ed0ff9c 100644 --- a/packages/css/src/components/breadcrumb/breadcrumb.scss +++ b/packages/css/src/components/breadcrumb/breadcrumb.scss @@ -10,26 +10,26 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-breadcrumb { - font-family: var(--amsterdam-breadcrumb-font-family, inherit); - font-size: var(--amsterdam-breadcrumb-font-size); - font-weight: var(--amsterdam-breadcrumb-font-weight); - line-height: var(--amsterdam-breadcrumb-line-height); +.ams-breadcrumb { + font-family: var(--ams-breadcrumb-font-family, inherit); + font-size: var(--ams-breadcrumb-font-size); + font-weight: var(--ams-breadcrumb-font-weight); + line-height: var(--ams-breadcrumb-line-height); } -.amsterdam-breadcrumb__list { +.ams-breadcrumb__list { break-after: avoid; break-inside: avoid; @include reset; } -.amsterdam-breadcrumb__item { +.ams-breadcrumb__item { display: inline; } -.amsterdam-breadcrumb__item:not(:last-child)::after { - background-image: var(--amsterdam-breadcrumb-separator-background-image); +.ams-breadcrumb__item:not(:last-child)::after { + background-image: var(--ams-breadcrumb-separator-background-image); background-repeat: no-repeat; content: ""; display: inline-block; @@ -38,15 +38,15 @@ width: 1ex; } -.amsterdam-breadcrumb__link { - color: var(--amsterdam-breadcrumb-item-link-color); - outline-offset: var(--amsterdam-breadcrumb-item-link-outline-offset); - text-decoration-line: var(--amsterdam-breadcrumb-item-link-text-decoration-line); - text-decoration-thickness: var(--amsterdam-breadcrumb-item-link-text-decoration-thickness); - text-underline-offset: var(--amsterdam-breadcrumb-item-link-text-underline-offset); +.ams-breadcrumb__link { + color: var(--ams-breadcrumb-item-link-color); + outline-offset: var(--ams-breadcrumb-item-link-outline-offset); + text-decoration-line: var(--ams-breadcrumb-item-link-text-decoration-line); + text-decoration-thickness: var(--ams-breadcrumb-item-link-text-decoration-thickness); + text-underline-offset: var(--ams-breadcrumb-item-link-text-underline-offset); &:hover { - color: var(--amsterdam-breadcrumb-item-link-hover-color); - text-decoration-line: var(--amsterdam-breadcrumb-item-link-hover-text-decoration-line); + color: var(--ams-breadcrumb-item-link-hover-color); + text-decoration-line: var(--ams-breadcrumb-item-link-hover-text-decoration-line); } } diff --git a/packages/css/src/components/button/button.scss b/packages/css/src/components/button/button.scss index d8fb0806e5..33ad38792c 100644 --- a/packages/css/src/components/button/button.scss +++ b/packages/css/src/components/button/button.scss @@ -7,84 +7,84 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-button { +.ams-button { border: none; - cursor: var(--amsterdam-button-cursor); + cursor: var(--ams-button-cursor); display: inline-flex; - font-family: var(--amsterdam-button-font-family); - font-size: var(--amsterdam-button-font-size); - gap: var(--amsterdam-button-gap); - line-height: var(--amsterdam-button-line-height); - outline-offset: var(--amsterdam-button-outline-offset); - padding-block: var(--amsterdam-button-padding-block); - padding-inline: var(--amsterdam-button-padding-inline); + font-family: var(--ams-button-font-family); + font-size: var(--ams-button-font-size); + gap: var(--ams-button-gap); + line-height: var(--ams-button-line-height); + outline-offset: var(--ams-button-outline-offset); + padding-block: var(--ams-button-padding-block); + padding-inline: var(--ams-button-padding-inline); touch-action: manipulation; &:disabled, &[aria-disabled="true"] { - cursor: var(--amsterdam-button-disabled-cursor); + cursor: var(--ams-button-disabled-cursor); } @include reset; } -@mixin amsterdam-button-forced-color-mode { +@mixin ams-button-forced-color-mode { @media screen and (-ms-high-contrast: active), screen and (forced-colors: active) { border: 2px solid ButtonBorder; // add border because forced colors changes box-shadow to none } } -.amsterdam-button--primary { - background-color: var(--amsterdam-button-primary-background-color); - box-shadow: var(--amsterdam-button-primary-box-shadow); - color: var(--amsterdam-button-primary-color); +.ams-button--primary { + background-color: var(--ams-button-primary-background-color); + box-shadow: var(--ams-button-primary-box-shadow); + color: var(--ams-button-primary-color); &:disabled, [aria-disabled="true"] { - background-color: var(--amsterdam-button-primary-disabled-background-color); - box-shadow: var(--amsterdam-button-primary-disabled-box-shadow); + background-color: var(--ams-button-primary-disabled-background-color); + box-shadow: var(--ams-button-primary-disabled-box-shadow); } &:hover:not(:disabled, [aria-disabled="true"]) { - background-color: var(--amsterdam-button-primary-hover-background-color); - box-shadow: var(--amsterdam-button-primary-hover-box-shadow); + background-color: var(--ams-button-primary-hover-background-color); + box-shadow: var(--ams-button-primary-hover-box-shadow); } - @include amsterdam-button-forced-color-mode; + @include ams-button-forced-color-mode; } -.amsterdam-button--secondary { - background-color: var(--amsterdam-button-secondary-background-color); - box-shadow: var(--amsterdam-button-secondary-box-shadow); - color: var(--amsterdam-button-secondary-color); +.ams-button--secondary { + background-color: var(--ams-button-secondary-background-color); + box-shadow: var(--ams-button-secondary-box-shadow); + color: var(--ams-button-secondary-color); &:disabled, [aria-disabled="true"] { - background-color: var(--amsterdam-button-secondary-disabled-background-color); - box-shadow: var(--amsterdam-button-secondary-disabled-box-shadow); - color: var(--amsterdam-button-secondary-disabled-color); + background-color: var(--ams-button-secondary-disabled-background-color); + box-shadow: var(--ams-button-secondary-disabled-box-shadow); + color: var(--ams-button-secondary-disabled-color); } &:hover:not(:disabled, [aria-disabled="true"]) { - box-shadow: var(--amsterdam-button-secondary-hover-box-shadow); - color: var(--amsterdam-button-secondary-hover-color); + box-shadow: var(--ams-button-secondary-hover-box-shadow); + color: var(--ams-button-secondary-hover-color); } - @include amsterdam-button-forced-color-mode; + @include ams-button-forced-color-mode; } -.amsterdam-button--tertiary { - background-color: var(--amsterdam-button-tertiary-background-color); - color: var(--amsterdam-button-tertiary-color); +.ams-button--tertiary { + background-color: var(--ams-button-tertiary-background-color); + color: var(--ams-button-tertiary-color); &:disabled, [aria-disabled="true"] { - background-color: var(--amsterdam-button-tertiary-disabled-background-color); - color: var(--amsterdam-button-tertiary-disabled-color); + background-color: var(--ams-button-tertiary-disabled-background-color); + color: var(--ams-button-tertiary-disabled-color); } &:hover:not(:disabled, [aria-disabled="true"]) { - box-shadow: var(--amsterdam-button-tertiary-hover-box-shadow); - color: var(--amsterdam-button-tertiary-hover-color); + box-shadow: var(--ams-button-tertiary-hover-box-shadow); + color: var(--ams-button-tertiary-hover-color); } } diff --git a/packages/css/src/components/card/card.scss b/packages/css/src/components/card/card.scss index 09e27bf7f3..156b6f7f1c 100644 --- a/packages/css/src/components/card/card.scss +++ b/packages/css/src/components/card/card.scss @@ -3,10 +3,10 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-card { +.ams-card { display: grid; gap: 0.5rem; - outline-offset: var(--amsterdam-card-outline-offset); + outline-offset: var(--ams-card-outline-offset); position: relative; touch-action: manipulation; @@ -37,20 +37,20 @@ } } -.amsterdam-card__heading-group { +.ams-card__heading-group { display: flex; flex-direction: column-reverse; gap: 0.5rem; } -.amsterdam-card__link { - color: var(--amsterdam-card-link-color); - text-decoration-line: var(--amsterdam-card-link-text-decoration-line); - text-decoration-thickness: var(--amsterdam-card-link-text-decoration-thickness); - text-underline-offset: var(--amsterdam-card-link-text-underline-offset); +.ams-card__link { + color: var(--ams-card-link-color); + text-decoration-line: var(--ams-card-link-text-decoration-line); + text-decoration-thickness: var(--ams-card-link-text-decoration-thickness); + text-underline-offset: var(--ams-card-link-text-underline-offset); &:hover { - color: var(--amsterdam-card-link-hover-color); - text-decoration-line: var(--amsterdam-card-link-hover-text-decoration-line); + color: var(--ams-card-link-hover-color); + text-decoration-line: var(--ams-card-link-hover-text-decoration-line); } } diff --git a/packages/css/src/components/checkbox/checkbox.scss b/packages/css/src/components/checkbox/checkbox.scss index 30c63760f4..b8dd1d61b7 100644 --- a/packages/css/src/components/checkbox/checkbox.scss +++ b/packages/css/src/components/checkbox/checkbox.scss @@ -6,23 +6,23 @@ @import "../../common/input-label-focus"; @import "../../common/hide-input"; -.amsterdam-checkbox__input { +.ams-checkbox__input { @include hide-input; @include input-label-focus; } -.amsterdam-checkbox__checkmark { +.ams-checkbox__checkmark { align-items: center; display: flex; flex-shrink: 0; - height: calc(var(--amsterdam-checkbox-font-size) * var(--amsterdam-checkbox-line-height)); + height: calc(var(--ams-checkbox-font-size) * var(--ams-checkbox-line-height)); width: 1.5rem; &::after { background-position: center; background-repeat: no-repeat; background-size: 1rem; - border-color: var(--amsterdam-checkbox-checkmark-border-color); + border-color: var(--ams-checkbox-checkmark-border-color); border-style: solid; border-width: 0.125rem; box-sizing: border-box; @@ -36,25 +36,25 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-checkbox__label { - color: var(--amsterdam-checkbox-color); +.ams-checkbox__label { + color: var(--ams-checkbox-color); cursor: pointer; display: inline-flex; - font-family: var(--amsterdam-checkbox-font-family); - font-size: var(--amsterdam-checkbox-font-size); - font-weight: var(--amsterdam-checkbox-font-weight); + font-family: var(--ams-checkbox-font-family); + font-size: var(--ams-checkbox-font-size); + font-weight: var(--ams-checkbox-font-weight); gap: 0.5rem; - line-height: var(--amsterdam-checkbox-line-height); - outline-offset: var(--amsterdam-checkbox-outline-offset); + line-height: var(--ams-checkbox-line-height); + outline-offset: var(--ams-checkbox-outline-offset); &:hover { - color: var(--amsterdam-checkbox-hover-color); + color: var(--ams-checkbox-hover-color); text-decoration-line: underline; text-decoration-thickness: 0.125rem; text-underline-offset: 0.375rem; - .amsterdam-checkbox__checkmark::after { - border-color: var(--amsterdam-checkbox-checkmark-hover-border-color); + .ams-checkbox__checkmark::after { + border-color: var(--ams-checkbox-checkmark-hover-border-color); border-width: 0.1875rem; } } @@ -63,19 +63,19 @@ } // Default checked -.amsterdam-checkbox__input:checked { - + .amsterdam-checkbox__label .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-checked-background-color); - background-image: var(--amsterdam-checkbox-checkmark-checked-background-image); +.ams-checkbox__input:checked { + + .ams-checkbox__label .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-checked-background-color); + background-image: var(--ams-checkbox-checkmark-checked-background-image); border: none; } } // Default indeterminate -.amsterdam-checkbox__input:indeterminate { - + .amsterdam-checkbox__label .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-indeterminate-background-color); - background-image: var(--amsterdam-checkbox-checkmark-indeterminate-background-image); +.ams-checkbox__input:indeterminate { + + .ams-checkbox__label .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-indeterminate-background-color); + background-image: var(--ams-checkbox-checkmark-indeterminate-background-image); background-position: center; background-repeat: no-repeat; background-size: 1rem; @@ -84,135 +84,133 @@ } // Invalid unchecked -.amsterdam-checkbox__input:invalid, -.amsterdam-checkbox__input[aria-invalid="true"] { - + .amsterdam-checkbox__label .amsterdam-checkbox__checkmark::after { - border-color: var(--amsterdam-checkbox-checkmark-invalid-border-color); +.ams-checkbox__input:invalid, +.ams-checkbox__input[aria-invalid="true"] { + + .ams-checkbox__label .ams-checkbox__checkmark::after { + border-color: var(--ams-checkbox-checkmark-invalid-border-color); } } // Disabled unchecked -.amsterdam-checkbox__input:disabled { - + .amsterdam-checkbox__label { - color: var(--amsterdam-checkbox-disabled-color); +.ams-checkbox__input:disabled { + + .ams-checkbox__label { + color: var(--ams-checkbox-disabled-color); cursor: not-allowed; - .amsterdam-checkbox__checkmark::after { - border-color: var(--amsterdam-checkbox-checkmark-disabled-border-color); + .ams-checkbox__checkmark::after { + border-color: var(--ams-checkbox-checkmark-disabled-border-color); border-width: 0.125rem; } } } // Invalid checked -.amsterdam-checkbox__input:invalid:checked, -.amsterdam-checkbox__input[aria-invalid="true"]:checked { - + .amsterdam-checkbox__label .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-invalid-checked-background-color); +.ams-checkbox__input:invalid:checked, +.ams-checkbox__input[aria-invalid="true"]:checked { + + .ams-checkbox__label .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-invalid-checked-background-color); } } // Invalid indeterminate -.amsterdam-checkbox__input:invalid:indeterminate, -.amsterdam-checkbox__input[aria-invalid="true"]:indeterminate { - + .amsterdam-checkbox__label .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-invalid-indeterminate-background-color); +.ams-checkbox__input:invalid:indeterminate, +.ams-checkbox__input[aria-invalid="true"]:indeterminate { + + .ams-checkbox__label .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-invalid-indeterminate-background-color); } } // Disabled label -.amsterdam-checkbox__input:disabled + .amsterdam-checkbox__label:hover { +.ams-checkbox__input:disabled + .ams-checkbox__label:hover { text-decoration: none; } // Disabled checked -.amsterdam-checkbox__input:disabled:checked { - + .amsterdam-checkbox__label .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-disabled-checked-background-color); +.ams-checkbox__input:disabled:checked { + + .ams-checkbox__label .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-disabled-checked-background-color); } } // Disabled indeterminate -.amsterdam-checkbox__input:disabled:indeterminate { - + .amsterdam-checkbox__label .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-disabled-indeterminate-background-color); +.ams-checkbox__input:disabled:indeterminate { + + .ams-checkbox__label .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-disabled-indeterminate-background-color); } } // Disabled invalid unchecked -.amsterdam-checkbox__input:invalid:disabled, -.amsterdam-checkbox__input[aria-invalid="true"]:disabled { - + .amsterdam-checkbox__label .amsterdam-checkbox__checkmark::after { +.ams-checkbox__input:invalid:disabled, +.ams-checkbox__input[aria-invalid="true"]:disabled { + + .ams-checkbox__label .ams-checkbox__checkmark::after { // TODO: currently disabled invalid gets the same styling as disabled. This should get its own styling. - border-color: var(--amsterdam-checkbox-checkmark-disabled-border-color); + border-color: var(--ams-checkbox-checkmark-disabled-border-color); } } // HOVER STATES // Invalid unchecked hover -:is(.amsterdam-checkbox__input:invalid, .amsterdam-checkbox__input[aria-invalid="true"]) - + .amsterdam-checkbox__label:hover - .amsterdam-checkbox__checkmark::after { +:is(.ams-checkbox__input:invalid, .ams-checkbox__input[aria-invalid="true"]) + + .ams-checkbox__label:hover + .ams-checkbox__checkmark::after { // TODO: this should be the (currently non-existent) dark red hover color - border-color: var(--amsterdam-checkbox-checkmark-invalid-hover-border-color); + border-color: var(--ams-checkbox-checkmark-invalid-hover-border-color); } // Default checked hover -.amsterdam-checkbox__input:checked + .amsterdam-checkbox__label:hover .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-checked-hover-background-color); +.ams-checkbox__input:checked + .ams-checkbox__label:hover .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-checked-hover-background-color); } // Default indeterminate hover -.amsterdam-checkbox__input:indeterminate + .amsterdam-checkbox__label:hover .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-indeterminate-hover-background-color); +.ams-checkbox__input:indeterminate + .ams-checkbox__label:hover .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-indeterminate-hover-background-color); } // Invalid checked hover -:is(.amsterdam-checkbox__input:invalid:checked, .amsterdam-checkbox__input[aria-invalid="true"]:checked) - + .amsterdam-checkbox__label:hover - .amsterdam-checkbox__checkmark::after { +:is(.ams-checkbox__input:invalid:checked, .ams-checkbox__input[aria-invalid="true"]:checked) + + .ams-checkbox__label:hover + .ams-checkbox__checkmark::after { // TODO: this should be the (currently non-existent) dark red hover color - background-color: var(--amsterdam-checkbox-checkmark-invalid-checked-hover-background-color); + background-color: var(--ams-checkbox-checkmark-invalid-checked-hover-background-color); } // Invalid indeterminate hover -:is(.amsterdam-checkbox__input:invalid:indeterminate, .amsterdam-checkbox__input[aria-invalid="true"]:indeterminate) - + .amsterdam-checkbox__label:hover - .amsterdam-checkbox__checkmark::after { +:is(.ams-checkbox__input:invalid:indeterminate, .ams-checkbox__input[aria-invalid="true"]:indeterminate) + + .ams-checkbox__label:hover + .ams-checkbox__checkmark::after { // TODO: this should be the (currently non-existent) dark red hover color - background-color: var(--amsterdam-checkbox-checkmark-invalid-indeterminate-hover-background-color); + background-color: var(--ams-checkbox-checkmark-invalid-indeterminate-hover-background-color); } // Disabled checked hover -.amsterdam-checkbox__input:disabled:checked + .amsterdam-checkbox__label:hover .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-disabled-checked-hover-background-color); +.ams-checkbox__input:disabled:checked + .ams-checkbox__label:hover .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-disabled-checked-hover-background-color); } // Disabled indeterminate hover -.amsterdam-checkbox__input:disabled:indeterminate - + .amsterdam-checkbox__label:hover - .amsterdam-checkbox__checkmark::after { - background-color: var(--amsterdam-checkbox-checkmark-disabled-indeterminate-hover-background-color); +.ams-checkbox__input:disabled:indeterminate + .ams-checkbox__label:hover .ams-checkbox__checkmark::after { + background-color: var(--ams-checkbox-checkmark-disabled-indeterminate-hover-background-color); } // Disabled invalid unchecked hover -:is(.amsterdam-checkbox__input:invalid:disabled, .amsterdam-checkbox__input[aria-invalid="true"]:disabled) - + .amsterdam-checkbox__label:hover - .amsterdam-checkbox__checkmark::after { +:is(.ams-checkbox__input:invalid:disabled, .ams-checkbox__input[aria-invalid="true"]:disabled) + + .ams-checkbox__label:hover + .ams-checkbox__checkmark::after { // TODO: currently disabled invalid gets the same styling as disabled. This should get its own styling. - border-color: var(--amsterdam-checkbox-checkmark-disabled-border-color); + border-color: var(--ams-checkbox-checkmark-disabled-border-color); } // DISABLED INVALID STATES // Disabled invalid checked & indeterminate -.amsterdam-checkbox__input:invalid:disabled:checked, -.amsterdam-checkbox__input:invalid:disabled:indeterminate, -.amsterdam-checkbox__input[aria-invalid="true"]:disabled:checked, -.amsterdam-checkbox__input[aria-invalid="true"]:disabled:indeterminate { - + .amsterdam-checkbox__label .amsterdam-checkbox__checkmark::after { +.ams-checkbox__input:invalid:disabled:checked, +.ams-checkbox__input:invalid:disabled:indeterminate, +.ams-checkbox__input[aria-invalid="true"]:disabled:checked, +.ams-checkbox__input[aria-invalid="true"]:disabled:indeterminate { + + .ams-checkbox__label .ams-checkbox__checkmark::after { // TODO: currently disabled invalid gets the same styling as disabled. This should get its own styling. - background-color: var(--amsterdam-checkbox-checkmark-disabled-checked-background-color); + background-color: var(--ams-checkbox-checkmark-disabled-checked-background-color); } } diff --git a/packages/css/src/components/column/column.scss b/packages/css/src/components/column/column.scss index 29b951ea43..66ef8e98ce 100644 --- a/packages/css/src/components/column/column.scss +++ b/packages/css/src/components/column/column.scss @@ -5,12 +5,12 @@ @import "../../common/size"; -.amsterdam-column { +.ams-column { display: grid; } -@each $size, $label in $amsterdam-sizes { - .amsterdam-column--#{$label} { - gap: var(--amsterdam-column-gap-#{$size}); +@each $size, $label in $ams-sizes { + .ams-column--#{$label} { + gap: var(--ams-column-gap-#{$size}); } } diff --git a/packages/css/src/components/dialog/dialog.scss b/packages/css/src/components/dialog/dialog.scss index 30228f5cac..87b3209ad6 100644 --- a/packages/css/src/components/dialog/dialog.scss +++ b/packages/css/src/components/dialog/dialog.scss @@ -6,11 +6,11 @@ @import "../../common/breakpoint"; @import "../../common/hyphenation"; -.amsterdam-dialog { - background-color: var(--amsterdam-dialog-background-color); - border: var(--amsterdam-dialog-border); +.ams-dialog { + background-color: var(--ams-dialog-background-color); + border: var(--ams-dialog-border); inset: 0; - max-inline-size: var(--amsterdam-dialog-max-inline-size); + max-inline-size: var(--ams-dialog-max-inline-size); padding-block: 0; padding-inline: 0; position: fixed; @@ -21,18 +21,18 @@ } } -.amsterdam-dialog__form { +.ams-dialog__form { display: grid; - gap: var(--amsterdam-dialog-form-gap); + gap: var(--ams-dialog-form-gap); grid-template-rows: auto 1fr auto; - max-block-size: var(--amsterdam-dialog-form-max-block-size); + max-block-size: var(--ams-dialog-form-max-block-size); // TODO Decide on these widths - padding-block: var(--amsterdam-dialog-form-padding-block); - padding-inline: var(--amsterdam-dialog-form-padding-inline); + padding-block: var(--ams-dialog-form-padding-block); + padding-inline: var(--ams-dialog-form-padding-inline); } -.amsterdam-dialog__article { +.ams-dialog__article { display: grid; gap: 1.5rem; /* Until we have a consistent way of spacing text elements */ max-block-size: 100%; /* safari */ @@ -40,34 +40,34 @@ overscroll-behavior-y: contain; } -.amsterdam-dialog__header { +.ams-dialog__header { align-items: flex-start; display: flex; - gap: var(--amsterdam-dialog-header-gap); + gap: var(--ams-dialog-header-gap); } @mixin reset { -webkit-text-size-adjust: 100%; } -.amsterdam-dialog__title { - color: var(--amsterdam-dialog-title-color); +.ams-dialog__title { + color: var(--ams-dialog-title-color); flex: auto; - font-family: var(--amsterdam-dialog-title-font-family); - font-size: var(--amsterdam-dialog-title-font-size); - font-weight: var(--amsterdam-dialog-title-font-weight); - line-height: var(--amsterdam-dialog-title-line-height); + font-family: var(--ams-dialog-title-font-family); + font-size: var(--ams-dialog-title-font-size); + font-weight: var(--ams-dialog-title-font-weight); + line-height: var(--ams-dialog-title-line-height); @include hyphenation; @include reset; } -.amsterdam-dialog__footer { +.ams-dialog__footer { display: flex; flex-direction: column; - grid-gap: var(--amsterdam-dialog-footer-gap); + grid-gap: var(--ams-dialog-footer-gap); - @media screen and (min-width: $amsterdam-breakpoint-medium) { + @media screen and (min-width: $ams-breakpoint-medium) { flex-direction: row; justify-content: end; } diff --git a/packages/css/src/components/fieldset/fieldset.scss b/packages/css/src/components/fieldset/fieldset.scss index 2ecc82dece..9fb277c170 100644 --- a/packages/css/src/components/fieldset/fieldset.scss +++ b/packages/css/src/components/fieldset/fieldset.scss @@ -12,7 +12,7 @@ padding-inline: 0; } -.amsterdam-fieldset { +.ams-fieldset { @include reset; } @@ -21,12 +21,12 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-fieldset__legend { - color: var(--amsterdam-fieldset-legend-color); - font-family: var(--amsterdam-fieldset-legend-font-family); - font-size: var(--amsterdam-fieldset-legend-font-size); - font-weight: var(--amsterdam-fieldset-legend-font-weight); - line-height: var(--amsterdam-fieldset-legend-line-height); +.ams-fieldset__legend { + color: var(--ams-fieldset-legend-color); + font-family: var(--ams-fieldset-legend-font-family); + font-size: var(--ams-fieldset-legend-font-size); + font-weight: var(--ams-fieldset-legend-font-weight); + line-height: var(--ams-fieldset-legend-line-height); margin-block-end: 1rem; /* Because of a bug in Chrome we can’t use display grid or flex for this gap */ @include hyphenation; diff --git a/packages/css/src/components/form-label/form-label.scss b/packages/css/src/components/form-label/form-label.scss index 6d33031723..c95fedf004 100644 --- a/packages/css/src/components/form-label/form-label.scss +++ b/packages/css/src/components/form-label/form-label.scss @@ -9,12 +9,12 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-form-label { - color: var(--amsterdam-form-label-color); - font-family: var(--amsterdam-form-label-font-family); - font-size: var(--amsterdam-form-label-font-size); - font-weight: var(--amsterdam-form-label-font-weight); - line-height: var(--amsterdam-form-label-line-height); +.ams-form-label { + color: var(--ams-form-label-color); + font-family: var(--ams-form-label-font-family); + font-size: var(--ams-form-label-font-size); + font-weight: var(--ams-form-label-font-weight); + line-height: var(--ams-form-label-line-height); @include hyphenation; @include reset; diff --git a/packages/css/src/components/gap/gap.scss b/packages/css/src/components/gap/gap.scss index 5b103e79fd..fa3da29bb6 100644 --- a/packages/css/src/components/gap/gap.scss +++ b/packages/css/src/components/gap/gap.scss @@ -5,12 +5,12 @@ @import "../../common/size"; -[class|="amsterdam-gap-"] { +[class|="ams-gap-"] { display: grid !important; } -@each $size in map-keys($amsterdam-sizes) { - .amsterdam-gap--#{$size} { - gap: var(--amsterdam-gap-#{$size}) !important; +@each $size in map-keys($ams-sizes) { + .ams-gap--#{$size} { + gap: var(--ams-gap-#{$size}) !important; } } diff --git a/packages/css/src/components/grid/grid.scss b/packages/css/src/components/grid/grid.scss index 56d1773427..4bb54dcfab 100644 --- a/packages/css/src/components/grid/grid.scss +++ b/packages/css/src/components/grid/grid.scss @@ -5,105 +5,105 @@ @import "../../common/breakpoint"; -.amsterdam-grid { - column-gap: var(--amsterdam-grid-column-gap); +.ams-grid { + column-gap: var(--ams-grid-column-gap); display: grid; - grid-template-columns: repeat(var(--amsterdam-grid-column-count), 1fr); - padding-inline: var(--amsterdam-grid-padding-inline); - row-gap: var(--amsterdam-grid-row-gap-md); + grid-template-columns: repeat(var(--ams-grid-column-count), 1fr); + padding-inline: var(--ams-grid-padding-inline); + row-gap: var(--ams-grid-row-gap-md); - @media screen and (min-width: $amsterdam-breakpoint-medium) { - grid-template-columns: repeat(var(--amsterdam-grid-medium-column-count), 1fr); + @media screen and (min-width: $ams-breakpoint-medium) { + grid-template-columns: repeat(var(--ams-grid-medium-column-count), 1fr); } - @media screen and (min-width: $amsterdam-breakpoint-wide) { - grid-template-columns: repeat(var(--amsterdam-grid-wide-column-count), 1fr); + @media screen and (min-width: $ams-breakpoint-wide) { + grid-template-columns: repeat(var(--ams-grid-wide-column-count), 1fr); } } -.amsterdam-grid--gap-vertical--none { +.ams-grid--gap-vertical--none { row-gap: initial; } -.amsterdam-grid--gap-vertical--small { - row-gap: var(--amsterdam-grid-row-gap-sm); +.ams-grid--gap-vertical--small { + row-gap: var(--ams-grid-row-gap-sm); } -.amsterdam-grid--gap-vertical--large { - row-gap: var(--amsterdam-grid-row-gap-lg); +.ams-grid--gap-vertical--large { + row-gap: var(--ams-grid-row-gap-lg); } -.amsterdam-grid--padding-bottom--small { - padding-block-end: var(--amsterdam-grid-padding-block-sm); +.ams-grid--padding-bottom--small { + padding-block-end: var(--ams-grid-padding-block-sm); } -.amsterdam-grid--padding-bottom--medium { - padding-block-end: var(--amsterdam-grid-padding-block-md); +.ams-grid--padding-bottom--medium { + padding-block-end: var(--ams-grid-padding-block-md); } -.amsterdam-grid--padding-bottom--large { - padding-block-end: var(--amsterdam-grid-padding-block-lg); +.ams-grid--padding-bottom--large { + padding-block-end: var(--ams-grid-padding-block-lg); } -.amsterdam-grid--padding-top--small { - padding-block-start: var(--amsterdam-grid-padding-block-sm); +.ams-grid--padding-top--small { + padding-block-start: var(--ams-grid-padding-block-sm); } -.amsterdam-grid--padding-top--medium { - padding-block-start: var(--amsterdam-grid-padding-block-md); +.ams-grid--padding-top--medium { + padding-block-start: var(--ams-grid-padding-block-md); } -.amsterdam-grid--padding-top--large { - padding-block-start: var(--amsterdam-grid-padding-block-lg); +.ams-grid--padding-top--large { + padding-block-start: var(--ams-grid-padding-block-lg); } -.amsterdam-grid--padding-vertical--small { - padding-block: var(--amsterdam-grid-padding-block-sm); +.ams-grid--padding-vertical--small { + padding-block: var(--ams-grid-padding-block-sm); } -.amsterdam-grid--padding-vertical--medium { - padding-block: var(--amsterdam-grid-padding-block-md); +.ams-grid--padding-vertical--medium { + padding-block: var(--ams-grid-padding-block-md); } -.amsterdam-grid--padding-vertical--large { - padding-block: var(--amsterdam-grid-padding-block-lg); +.ams-grid--padding-vertical--large { + padding-block: var(--ams-grid-padding-block-lg); } -.amsterdam-grid__cell--span-all { +.ams-grid__cell--span-all { grid-column: 1 / -1; } // The order of the following declaration blocks ensures the intended specificity. @for $i from 1 through 12 { - .amsterdam-grid__cell--span-#{$i} { + .ams-grid__cell--span-#{$i} { grid-column-end: span $i; } - .amsterdam-grid__cell--start-#{$i} { + .ams-grid__cell--start-#{$i} { grid-column-start: $i; } } -@media screen and (min-width: $amsterdam-breakpoint-medium) { +@media screen and (min-width: $ams-breakpoint-medium) { @for $i from 1 through 12 { - .amsterdam-grid__cell--span-#{$i}-medium { + .ams-grid__cell--span-#{$i}-medium { grid-column-end: span $i; } - .amsterdam-grid__cell--start-#{$i}-medium { + .ams-grid__cell--start-#{$i}-medium { grid-column-start: $i; } } } -@media screen and (min-width: $amsterdam-breakpoint-wide) { +@media screen and (min-width: $ams-breakpoint-wide) { @for $i from 1 through 12 { - .amsterdam-grid__cell--span-#{$i}-wide { + .ams-grid__cell--span-#{$i}-wide { grid-column-end: span $i; } - .amsterdam-grid__cell--start-#{$i}-wide { + .ams-grid__cell--start-#{$i}-wide { grid-column-start: $i; } } diff --git a/packages/css/src/components/header/header.scss b/packages/css/src/components/header/header.scss index 9e4ac0d2df..13789b6702 100644 --- a/packages/css/src/components/header/header.scss +++ b/packages/css/src/components/header/header.scss @@ -5,56 +5,56 @@ @import "../../common/breakpoint"; -.amsterdam-header { +.ams-header { align-items: center; display: flex; flex-wrap: wrap; - padding-block: var(--amsterdam-header-padding-block); + padding-block: var(--ams-header-padding-block); row-gap: 1.5rem; - @media screen and (min-width: $amsterdam-breakpoint-wide) { - column-gap: var(--amsterdam-header-column-gap); + @media screen and (min-width: $ams-breakpoint-wide) { + column-gap: var(--ams-header-column-gap); flex-wrap: nowrap; } } -.amsterdam-header__logo-link { +.ams-header__logo-link { flex: none; - outline-offset: var(--amsterdam-header-logo-link-outline-offset); + outline-offset: var(--ams-header-logo-link-outline-offset); } -.amsterdam-header__links { +.ams-header__links { display: none; - @media screen and (min-width: $amsterdam-breakpoint-medium) { + @media screen and (min-width: $ams-breakpoint-medium) { display: block; flex: 10 0 auto; } - @media screen and (min-width: $amsterdam-breakpoint-wide) { + @media screen and (min-width: $ams-breakpoint-wide) { order: 3; } } -.amsterdam-header__menu { +.ams-header__menu { flex: 1; - padding-inline-start: var(--amsterdam-page-menu-column-gap); // TODO Don’t use tokens of another component + padding-inline-start: var(--ams-page-menu-column-gap); // TODO Don’t use tokens of another component text-align: end; - @media screen and (min-width: $amsterdam-breakpoint-wide) { + @media screen and (min-width: $ams-breakpoint-wide) { order: 4; padding-inline-start: 0; } } -.amsterdam-header__title { +.ams-header__title { flex: 1 1 100%; - @media screen and (min-width: $amsterdam-breakpoint-wide) { + @media screen and (min-width: $ams-breakpoint-wide) { min-width: 0; order: 2; - .amsterdam-header__title-heading { + .ams-header__title-heading { display: block; line-height: 1; overflow: hidden; @@ -66,18 +66,18 @@ } // Temporary, will move to megamenu (and/or iconButton) -.amsterdam-header__menu-button { +.ams-header__menu-button { background-color: transparent; background-image: url("data:image/svg+xml;utf8,"); background-position: center right; background-repeat: no-repeat; background-size: 19px 19px; border: 0; - color: var(--amsterdam-page-menu-item-color); - font-family: var(--amsterdam-page-menu-item-font-family); - font-size: var(--amsterdam-page-menu-item-font-size); - font-weight: var(--amsterdam-page-menu-item-font-weight); - line-height: var(--amsterdam-page-menu-item-line-height); + color: var(--ams-page-menu-item-color); + font-family: var(--ams-page-menu-item-font-family); + font-size: var(--ams-page-menu-item-font-size); + font-weight: var(--ams-page-menu-item-font-weight); + line-height: var(--ams-page-menu-item-line-height); margin-block: 0; padding-inline: 0 30px; text-align: center; diff --git a/packages/css/src/components/heading/heading.scss b/packages/css/src/components/heading/heading.scss index 27873a436b..7180d55e75 100644 --- a/packages/css/src/components/heading/heading.scss +++ b/packages/css/src/components/heading/heading.scss @@ -11,47 +11,47 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-heading { +.ams-heading { break-after: avoid; break-inside: avoid; - color: var(--amsterdam-heading-color); - font-family: var(--amsterdam-heading-font-family); - font-weight: var(--amsterdam-heading-font-weight); + color: var(--ams-heading-color); + font-family: var(--ams-heading-font-family); + font-weight: var(--ams-heading-font-weight); @include hyphenation; @include reset; } -.amsterdam-heading--1 { - font-size: var(--amsterdam-heading-level-1-font-size); - line-height: var(--amsterdam-heading-level-1-line-height); +.ams-heading--1 { + font-size: var(--ams-heading-level-1-font-size); + line-height: var(--ams-heading-level-1-line-height); } -.amsterdam-heading--2 { - font-size: var(--amsterdam-heading-level-2-font-size); - line-height: var(--amsterdam-heading-level-2-line-height); +.ams-heading--2 { + font-size: var(--ams-heading-level-2-font-size); + line-height: var(--ams-heading-level-2-line-height); } -.amsterdam-heading--3 { - font-size: var(--amsterdam-heading-level-3-font-size); - line-height: var(--amsterdam-heading-level-3-line-height); +.ams-heading--3 { + font-size: var(--ams-heading-level-3-font-size); + line-height: var(--ams-heading-level-3-line-height); } -.amsterdam-heading--4 { - font-size: var(--amsterdam-heading-level-4-font-size); - line-height: var(--amsterdam-heading-level-4-line-height); +.ams-heading--4 { + font-size: var(--ams-heading-level-4-font-size); + line-height: var(--ams-heading-level-4-line-height); } -.amsterdam-heading--5 { - font-size: var(--amsterdam-heading-level-5-font-size); - line-height: var(--amsterdam-heading-level-5-line-height); +.ams-heading--5 { + font-size: var(--ams-heading-level-5-font-size); + line-height: var(--ams-heading-level-5-line-height); } -.amsterdam-heading--6 { - font-size: var(--amsterdam-heading-level-6-font-size); - line-height: var(--amsterdam-heading-level-6-line-height); +.ams-heading--6 { + font-size: var(--ams-heading-level-6-font-size); + line-height: var(--ams-heading-level-6-line-height); } -.amsterdam-heading--inverse-color { - color: var(--amsterdam-heading-inverse-color); +.ams-heading--inverse-color { + color: var(--ams-heading-inverse-color); } diff --git a/packages/css/src/components/icon-button/icon-button.scss b/packages/css/src/components/icon-button/icon-button.scss index 554adcfdff..7a7de250b4 100644 --- a/packages/css/src/components/icon-button/icon-button.scss +++ b/packages/css/src/components/icon-button/icon-button.scss @@ -9,52 +9,52 @@ padding-inline: 0; } -.amsterdam-icon-button { +.ams-icon-button { background-color: transparent; - color: var(--amsterdam-icon-button-color); + color: var(--ams-icon-button-color); cursor: pointer; - outline-offset: var(--amsterdam-icon-button-outline-offset); + outline-offset: var(--ams-icon-button-outline-offset); touch-action: manipulation; &:hover { - background-color: var(--amsterdam-icon-button-hover-background-color); - color: var(--amsterdam-icon-button-hover-color); + background-color: var(--ams-icon-button-hover-background-color); + color: var(--ams-icon-button-hover-color); } &:disabled { background-color: transparent; - color: var(--amsterdam-icon-button-disabled-color); + color: var(--ams-icon-button-disabled-color); cursor: not-allowed; } @include reset; } -.amsterdam-icon-button--on-background-light { - color: var(--amsterdam-icon-button-on-background-light-color); +.ams-icon-button--on-background-light { + color: var(--ams-icon-button-on-background-light-color); &:hover { - background-color: var(--amsterdam-icon-button-on-background-light-hover-background-color); - color: var(--amsterdam-icon-button-on-background-light-hover-color); + background-color: var(--ams-icon-button-on-background-light-hover-background-color); + color: var(--ams-icon-button-on-background-light-hover-color); } &:disabled { background-color: transparent; - color: var(--amsterdam-icon-button-on-background-light-disabled-color); + color: var(--ams-icon-button-on-background-light-disabled-color); } } -.amsterdam-icon-button--on-background-dark { - background-color: var(--amsterdam-icon-button-on-background-dark-background-color); - color: var(--amsterdam-icon-button-on-background-dark-color); +.ams-icon-button--on-background-dark { + background-color: var(--ams-icon-button-on-background-dark-background-color); + color: var(--ams-icon-button-on-background-dark-color); &:hover { - background-color: var(--amsterdam-icon-button-on-background-dark-hover-background-color); - color: var(--amsterdam-icon-button-on-background-dark-hover-color); + background-color: var(--ams-icon-button-on-background-dark-hover-background-color); + color: var(--ams-icon-button-on-background-dark-hover-color); } &:disabled { - background-color: var(--amsterdam-icon-button-on-background-dark-disabled-background-color); - color: var(--amsterdam-icon-button-on-background-dark-disabled-color); + background-color: var(--ams-icon-button-on-background-dark-disabled-background-color); + color: var(--ams-icon-button-on-background-dark-disabled-color); } } diff --git a/packages/css/src/components/icon/icon.scss b/packages/css/src/components/icon/icon.scss index 0d50d2da4d..5b963992ae 100644 --- a/packages/css/src/components/icon/icon.scss +++ b/packages/css/src/components/icon/icon.scss @@ -3,52 +3,52 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-icon { +.ams-icon { align-items: center; display: inline-flex; } -.amsterdam-icon svg { +.ams-icon svg { fill: currentColor; } -.amsterdam-icon--square { +.ams-icon--square { aspect-ratio: 1 / 1; justify-content: center; } -.amsterdam-icon--size-3 { - height: calc(var(--amsterdam-icon-size-3-font-size) * var(--amsterdam-icon-size-3-line-height)); +.ams-icon--size-3 { + height: calc(var(--ams-icon-size-3-font-size) * var(--ams-icon-size-3-line-height)); } -.amsterdam-icon--size-3 svg { - height: var(--amsterdam-icon-size-3-font-size); - width: var(--amsterdam-icon-size-3-font-size); +.ams-icon--size-3 svg { + height: var(--ams-icon-size-3-font-size); + width: var(--ams-icon-size-3-font-size); } -.amsterdam-icon--size-4 { - height: calc(var(--amsterdam-icon-size-4-font-size) * var(--amsterdam-icon-size-4-line-height)); +.ams-icon--size-4 { + height: calc(var(--ams-icon-size-4-font-size) * var(--ams-icon-size-4-line-height)); } -.amsterdam-icon--size-4 svg { - height: var(--amsterdam-icon-size-4-font-size); - width: var(--amsterdam-icon-size-4-font-size); +.ams-icon--size-4 svg { + height: var(--ams-icon-size-4-font-size); + width: var(--ams-icon-size-4-font-size); } -.amsterdam-icon--size-5 { - height: calc(var(--amsterdam-icon-size-5-font-size) * var(--amsterdam-icon-size-5-line-height)); +.ams-icon--size-5 { + height: calc(var(--ams-icon-size-5-font-size) * var(--ams-icon-size-5-line-height)); } -.amsterdam-icon--size-5 svg { - height: var(--amsterdam-icon-size-5-font-size); - width: var(--amsterdam-icon-size-5-font-size); +.ams-icon--size-5 svg { + height: var(--ams-icon-size-5-font-size); + width: var(--ams-icon-size-5-font-size); } -.amsterdam-icon--size-6 { - height: calc(var(--amsterdam-icon-size-6-font-size) * var(--amsterdam-icon-size-6-line-height)); +.ams-icon--size-6 { + height: calc(var(--ams-icon-size-6-font-size) * var(--ams-icon-size-6-line-height)); } -.amsterdam-icon--size-6 svg { - height: var(--amsterdam-icon-size-6-font-size); - width: var(--amsterdam-icon-size-6-font-size); +.ams-icon--size-6 svg { + height: var(--ams-icon-size-6-font-size); + width: var(--ams-icon-size-6-font-size); } diff --git a/packages/css/src/components/image/image.scss b/packages/css/src/components/image/image.scss index afa982e279..9851e30279 100644 --- a/packages/css/src/components/image/image.scss +++ b/packages/css/src/components/image/image.scss @@ -3,7 +3,7 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-image { +.ams-image { font-style: italic; /* [3] */ height: auto; /* [1] */ max-width: 100%; /* [1] */ diff --git a/packages/css/src/components/link-list/link-list.scss b/packages/css/src/components/link-list/link-list.scss index 746406d46e..f1c6f42988 100644 --- a/packages/css/src/components/link-list/link-list.scss +++ b/packages/css/src/components/link-list/link-list.scss @@ -13,57 +13,57 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-link-list { +.ams-link-list { @include reset-list; display: grid; - gap: var(--amsterdam-link-list-gap); + gap: var(--ams-link-list-gap); } -.amsterdam-link-list__link { +.ams-link-list__link { align-items: flex-start; - color: var(--amsterdam-link-list-link-color); + color: var(--ams-link-list-link-color); display: inline-flex; - font-family: var(--amsterdam-link-list-link-font-family); - font-size: var(--amsterdam-link-list-link-medium-font-size); - font-weight: var(--amsterdam-link-list-link-font-weight); - gap: var(--amsterdam-link-list-link-gap); - line-height: var(--amsterdam-link-list-link-medium-line-height); - outline-offset: var(--amsterdam-link-list-link-outline-offset); - text-decoration-line: var(--amsterdam-link-list-link-text-decoration-line); - text-decoration-thickness: var(--amsterdam-link-list-link-text-decoration-thickness); - text-underline-offset: var(--amsterdam-link-list-link-text-underline-offset); + font-family: var(--ams-link-list-link-font-family); + font-size: var(--ams-link-list-link-medium-font-size); + font-weight: var(--ams-link-list-link-font-weight); + gap: var(--ams-link-list-link-gap); + line-height: var(--ams-link-list-link-medium-line-height); + outline-offset: var(--ams-link-list-link-outline-offset); + text-decoration-line: var(--ams-link-list-link-text-decoration-line); + text-decoration-thickness: var(--ams-link-list-link-text-decoration-thickness); + text-underline-offset: var(--ams-link-list-link-text-underline-offset); &:hover { - color: var(--amsterdam-link-list-link-hover-color); - text-decoration-line: var(--amsterdam-link-list-link-hover-text-decoration-line); + color: var(--ams-link-list-link-hover-color); + text-decoration-line: var(--ams-link-list-link-hover-text-decoration-line); } } -.amsterdam-link-list__link--small { - font-size: var(--amsterdam-link-list-link-small-font-size); - line-height: var(--amsterdam-link-list-link-small-line-height); +.ams-link-list__link--small { + font-size: var(--ams-link-list-link-small-font-size); + line-height: var(--ams-link-list-link-small-line-height); } -.amsterdam-link-list__link--large { - font-size: var(--amsterdam-link-list-link-large-font-size); - line-height: var(--amsterdam-link-list-link-large-line-height); +.ams-link-list__link--large { + font-size: var(--ams-link-list-link-large-font-size); + line-height: var(--ams-link-list-link-large-line-height); @include hyphenation; } -.amsterdam-link-list__link--on-background-dark { - color: var(--amsterdam-link-list-link-on-background-dark-color); +.ams-link-list__link--on-background-dark { + color: var(--ams-link-list-link-on-background-dark-color); &:hover { - color: var(--amsterdam-link-list-link-on-background-dark-hover-color); + color: var(--ams-link-list-link-on-background-dark-hover-color); } } -.amsterdam-link-list__link--on-background-light { - color: var(--amsterdam-link-list-link-on-background-light-color); +.ams-link-list__link--on-background-light { + color: var(--ams-link-list-link-on-background-light-color); &:hover { - color: var(--amsterdam-link-list-link-on-background-light-hover-color); + color: var(--ams-link-list-link-on-background-light-hover-color); } } diff --git a/packages/css/src/components/link/link.scss b/packages/css/src/components/link/link.scss index c01e7d1b4c..3fb8ff2e62 100644 --- a/packages/css/src/components/link/link.scss +++ b/packages/css/src/components/link/link.scss @@ -7,71 +7,71 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-link { - color: var(--amsterdam-link-color); - font-family: var(--amsterdam-link-font-family); - font-weight: var(--amsterdam-link-font-weight); - outline-offset: var(--amsterdam-link-outline-offset); +.ams-link { + color: var(--ams-link-color); + font-family: var(--ams-link-font-family); + font-weight: var(--ams-link-font-weight); + outline-offset: var(--ams-link-outline-offset); &:hover { - color: var(--amsterdam-link-hover-color); + color: var(--ams-link-hover-color); } @include reset; } -.amsterdam-link--standalone { +.ams-link--standalone { display: inline-block; - font-size: var(--amsterdam-link-standalone-font-size); - line-height: var(--amsterdam-link-standalone-line-height); - text-decoration-line: var(--amsterdam-link-standalone-text-decoration-line); - text-decoration-thickness: var(--amsterdam-link-standalone-text-decoration-thickness); - text-underline-offset: var(--amsterdam-link-standalone-text-underline-offset); + font-size: var(--ams-link-standalone-font-size); + line-height: var(--ams-link-standalone-line-height); + text-decoration-line: var(--ams-link-standalone-text-decoration-line); + text-decoration-thickness: var(--ams-link-standalone-text-decoration-thickness); + text-underline-offset: var(--ams-link-standalone-text-underline-offset); &:hover { - text-decoration-thickness: var(--amsterdam-link-standalone-hover-text-decoration-thickness); - text-underline-offset: var(--amsterdam-link-standalone-hover-text-underline-offset); + text-decoration-thickness: var(--ams-link-standalone-hover-text-decoration-thickness); + text-underline-offset: var(--ams-link-standalone-hover-text-underline-offset); } } -.amsterdam-link--inline { - font-family: var(--amsterdam-link-inline-font-family); - font-size: var(--amsterdam-link-inline-font-size); - line-height: var(--amsterdam-link-inline-line-height); - text-decoration-line: var(--amsterdam-link-inline-text-decoration-line); - text-decoration-thickness: var(--amsterdam-link-inline-text-decoration-thickness); - text-underline-offset: var(--amsterdam-link-inline-text-underline-offset); +.ams-link--inline { + font-family: var(--ams-link-inline-font-family); + font-size: var(--ams-link-inline-font-size); + line-height: var(--ams-link-inline-line-height); + text-decoration-line: var(--ams-link-inline-text-decoration-line); + text-decoration-thickness: var(--ams-link-inline-text-decoration-thickness); + text-underline-offset: var(--ams-link-inline-text-underline-offset); &:hover { - text-decoration-thickness: var(--amsterdam-link-inline-hover-text-decoration-thickness); - text-underline-offset: var(--amsterdam-link-inline-hover-text-underline-offset); + text-decoration-thickness: var(--ams-link-inline-hover-text-decoration-thickness); + text-underline-offset: var(--ams-link-inline-hover-text-underline-offset); } &:visited { - color: var(--amsterdam-link-inline-visited-color); + color: var(--ams-link-inline-visited-color); } } -.amsterdam-link--on-background-dark { - color: var(--amsterdam-link-on-background-dark-color); +.ams-link--on-background-dark { + color: var(--ams-link-on-background-dark-color); &:hover { - color: var(--amsterdam-link-on-background-dark-hover-color); + color: var(--ams-link-on-background-dark-hover-color); } &:visited { - color: var(--amsterdam-link-on-background-dark-visited-color); + color: var(--ams-link-on-background-dark-visited-color); } } -.amsterdam-link--on-background-light { - color: var(--amsterdam-link-on-background-light-color); +.ams-link--on-background-light { + color: var(--ams-link-on-background-light-color); &:hover { - color: var(--amsterdam-link-on-background-light-hover-color); + color: var(--ams-link-on-background-light-hover-color); } &:visited { - color: var(--amsterdam-link-on-background-light-visited-color); + color: var(--ams-link-on-background-light-visited-color); } } diff --git a/packages/css/src/components/logo/logo.scss b/packages/css/src/components/logo/logo.scss index d6cb8ee02e..7388462302 100644 --- a/packages/css/src/components/logo/logo.scss +++ b/packages/css/src/components/logo/logo.scss @@ -3,19 +3,19 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-logo { +.ams-logo { display: block; - height: var(--amsterdam-logo-height); + height: var(--ams-logo-height); } -.amsterdam-logo__emblem { - fill: var(--amsterdam-logo-emblem-color); +.ams-logo__emblem { + fill: var(--ams-logo-emblem-color); } -.amsterdam-logo__text-primary { - fill: var(--amsterdam-logo-title-color); +.ams-logo__text-primary { + fill: var(--ams-logo-title-color); } -.amsterdam-logo__text-secondary { - fill: var(--amsterdam-logo-subsite-color); +.ams-logo__text-secondary { + fill: var(--ams-logo-subsite-color); } diff --git a/packages/css/src/components/margin/margin.scss b/packages/css/src/components/margin/margin.scss index 3a51a66542..2ba5b5c1b1 100644 --- a/packages/css/src/components/margin/margin.scss +++ b/packages/css/src/components/margin/margin.scss @@ -5,8 +5,8 @@ @import "../../common/size"; -@each $size in map-keys($amsterdam-sizes) { - .amsterdam-mb--#{$size} { - margin-block-end: var(--amsterdam-margin-#{$size}) !important; +@each $size in map-keys($ams-sizes) { + .ams-mb--#{$size} { + margin-block-end: var(--ams-margin-#{$size}) !important; } } diff --git a/packages/css/src/components/mark/mark.scss b/packages/css/src/components/mark/mark.scss index fc58cd172c..08ad8cf6ef 100644 --- a/packages/css/src/components/mark/mark.scss +++ b/packages/css/src/components/mark/mark.scss @@ -3,6 +3,6 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-mark { - background-color: var(--amsterdam-mark-background-color); +.ams-mark { + background-color: var(--ams-mark-background-color); } diff --git a/packages/css/src/components/mega-menu/mega-menu.scss b/packages/css/src/components/mega-menu/mega-menu.scss index 2a3ca221fc..4c248b27f2 100644 --- a/packages/css/src/components/mega-menu/mega-menu.scss +++ b/packages/css/src/components/mega-menu/mega-menu.scss @@ -3,14 +3,14 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-mega-menu__list-category { - column-gap: var(--amsterdam-mega-menu-list-category-column-gap); - column-width: var(--amsterdam-mega-menu-list-category-column-width); +.ams-mega-menu__list-category { + column-gap: var(--ams-mega-menu-list-category-column-gap); + column-width: var(--ams-mega-menu-list-category-column-width); // TODO Move to bottom margin of heading - padding-block-start: var(--amsterdam-mega-menu-list-category-padding-block-start); + padding-block-start: var(--ams-mega-menu-list-category-padding-block-start); &:not(:last-child) { - padding-block-end: var(--amsterdam-mega-menu-list-category-padding-block-end); + padding-block-end: var(--ams-mega-menu-list-category-padding-block-end); } } diff --git a/packages/css/src/components/ordered-list/ordered-list.scss b/packages/css/src/components/ordered-list/ordered-list.scss index ce839b6a34..63f5760ad2 100644 --- a/packages/css/src/components/ordered-list/ordered-list.scss +++ b/packages/css/src/components/ordered-list/ordered-list.scss @@ -13,39 +13,39 @@ } /** A list is a grid column with a gap between items. */ -.amsterdam-ordered-list { +.ams-ordered-list { @include reset; display: grid; - gap: var(--amsterdam-ordered-list-gap); + gap: var(--ams-ordered-list-gap); } /** A list with markers sets typography for its text content. */ -.amsterdam-ordered-list:not(.amsterdam-ordered-list--no-markers) { - color: var(--amsterdam-ordered-list-color); - font-family: var(--amsterdam-ordered-list-font-family); - font-size: var(--amsterdam-ordered-list-font-size); - font-weight: var(--amsterdam-ordered-list-font-weight); - line-height: var(--amsterdam-ordered-list-line-height); - list-style-type: var(--amsterdam-ordered-list-list-style-type); +.ams-ordered-list:not(.ams-ordered-list--no-markers) { + color: var(--ams-ordered-list-color); + font-family: var(--ams-ordered-list-font-family); + font-size: var(--ams-ordered-list-font-size); + font-weight: var(--ams-ordered-list-font-weight); + line-height: var(--ams-ordered-list-line-height); + list-style-type: var(--ams-ordered-list-list-style-type); /** List items are responsible for indentation and marker positioning. */ - .amsterdam-ordered-list__item { - margin-inline-start: var(--amsterdam-ordered-list-item-margin-inline-start); - padding-inline-start: var(--amsterdam-ordered-list-item-padding-inline-start); + .ams-ordered-list__item { + margin-inline-start: var(--ams-ordered-list-item-margin-inline-start); + padding-inline-start: var(--ams-ordered-list-item-padding-inline-start); } } -.amsterdam-ordered-list--inverse-color:not(.amsterdam-ordered-list--no-markers) { - color: var(--amsterdam-ordered-list-inverse-color); +.ams-ordered-list--inverse-color:not(.ams-ordered-list--no-markers) { + color: var(--ams-ordered-list-inverse-color); } /** A nested list has a different marker and less indentation for correct alignment. */ -:is(.amsterdam-ordered-list, .amsterdam-unordered-list) .amsterdam-ordered-list { - list-style-type: var(--amsterdam-ordered-list-ordered-list-list-style-type); +:is(.ams-ordered-list, .ams-unordered-list) .ams-ordered-list { + list-style-type: var(--ams-ordered-list-ordered-list-list-style-type); - .amsterdam-ordered-list__item { - margin-inline-start: var(--amsterdam-ordered-list-ordered-list-item-margin-inline-start); - padding-inline-start: var(--amsterdam-ordered-list-ordered-list-item-padding-inline-start); + .ams-ordered-list__item { + margin-inline-start: var(--ams-ordered-list-ordered-list-item-margin-inline-start); + padding-inline-start: var(--ams-ordered-list-ordered-list-item-padding-inline-start); } } diff --git a/packages/css/src/components/overlap/overlap.scss b/packages/css/src/components/overlap/overlap.scss index f0395961cf..771dc7414e 100644 --- a/packages/css/src/components/overlap/overlap.scss +++ b/packages/css/src/components/overlap/overlap.scss @@ -3,7 +3,7 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-overlap { +.ams-overlap { display: grid; > * { diff --git a/packages/css/src/components/page-heading/page-heading.scss b/packages/css/src/components/page-heading/page-heading.scss index 0b9fac778b..2f0454205f 100644 --- a/packages/css/src/components/page-heading/page-heading.scss +++ b/packages/css/src/components/page-heading/page-heading.scss @@ -11,19 +11,19 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-page-heading { +.ams-page-heading { break-after: avoid; break-inside: avoid; - color: var(--amsterdam-page-heading-color); - font-family: var(--amsterdam-page-heading-font-family); - font-size: var(--amsterdam-page-heading-font-size); - font-weight: var(--amsterdam-page-heading-font-weight); - line-height: var(--amsterdam-page-heading-line-height); + color: var(--ams-page-heading-color); + font-family: var(--ams-page-heading-font-family); + font-size: var(--ams-page-heading-font-size); + font-weight: var(--ams-page-heading-font-weight); + line-height: var(--ams-page-heading-line-height); @include hyphenation; @include reset; } -.amsterdam-page-heading--inverse-color { - color: var(--amsterdam-page-heading-inverse-color); +.ams-page-heading--inverse-color { + color: var(--ams-page-heading-inverse-color); } diff --git a/packages/css/src/components/page-menu/page-menu.scss b/packages/css/src/components/page-menu/page-menu.scss index fde81a50a2..b6156dff68 100644 --- a/packages/css/src/components/page-menu/page-menu.scss +++ b/packages/css/src/components/page-menu/page-menu.scss @@ -14,50 +14,50 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-page-menu { +.ams-page-menu { align-items: center; - column-gap: var(--amsterdam-page-menu-column-gap); + column-gap: var(--ams-page-menu-column-gap); display: flex; flex-direction: row; list-style: none; - row-gap: var(--amsterdam-page-menu-row-gap); + row-gap: var(--ams-page-menu-row-gap); @include reset-list; } -.amsterdam-page-menu--align-end { +.ams-page-menu--align-end { justify-content: end; } @mixin page-menu-item { - color: var(--amsterdam-page-menu-item-color); + color: var(--ams-page-menu-item-color); display: inline-flex; flex-direction: row; - font-family: var(--amsterdam-page-menu-item-font-family); - font-size: var(--amsterdam-page-menu-item-font-size); - font-weight: var(--amsterdam-page-menu-item-font-weight); - gap: var(--amsterdam-page-menu-item-gap); - line-height: var(--amsterdam-page-menu-item-line-height); - outline-offset: var(--amsterdam-page-menu-item-outline-offset); + font-family: var(--ams-page-menu-item-font-family); + font-size: var(--ams-page-menu-item-font-size); + font-weight: var(--ams-page-menu-item-font-weight); + gap: var(--ams-page-menu-item-gap); + line-height: var(--ams-page-menu-item-line-height); + outline-offset: var(--ams-page-menu-item-outline-offset); text-align: center; - text-decoration-line: var(--amsterdam-page-menu-item-text-decoration-line); - text-decoration-thickness: var(--amsterdam-page-menu-item-text-decoration-thickness); - text-underline-offset: var(--amsterdam-page-menu-item-text-underline-offset); + text-decoration-line: var(--ams-page-menu-item-text-decoration-line); + text-decoration-thickness: var(--ams-page-menu-item-text-decoration-thickness); + text-underline-offset: var(--ams-page-menu-item-text-underline-offset); touch-action: manipulation; white-space: nowrap; } -.amsterdam-page-menu__link { +.ams-page-menu__link { @include page-menu-item; @include reset-item; } -.amsterdam-page-menu__link:hover, -.amsterdam-page-menu__button:hover { - color: var(--amsterdam-page-menu-item-hover-color); - text-decoration-line: var(--amsterdam-page-menu-item-hover-text-decoration-line); +.ams-page-menu__link:hover, +.ams-page-menu__button:hover { + color: var(--ams-page-menu-item-hover-color); + text-decoration-line: var(--ams-page-menu-item-hover-text-decoration-line); } -.amsterdam-page-menu__link svg { +.ams-page-menu__link svg { color: currentColor; } diff --git a/packages/css/src/components/pagination/pagination.scss b/packages/css/src/components/pagination/pagination.scss index 9a6f97f9b5..7e2276a021 100644 --- a/packages/css/src/components/pagination/pagination.scss +++ b/packages/css/src/components/pagination/pagination.scss @@ -9,15 +9,15 @@ padding-inline-start: 0; } -.amsterdam-pagination__list { - color: var(--amsterdam-pagination-color); +.ams-pagination__list { + color: var(--ams-pagination-color); display: flex; flex-wrap: wrap; - font-family: var(--amsterdam-pagination-font-family); - font-size: var(--amsterdam-pagination-font-size); - font-weight: var(--amsterdam-pagination-font-weight); + font-family: var(--ams-pagination-font-family); + font-size: var(--ams-pagination-font-size); + font-weight: var(--ams-pagination-font-weight); justify-content: center; - line-height: var(--amsterdam-pagination-line-height); + line-height: var(--ams-pagination-line-height); @include list-reset; } @@ -29,7 +29,7 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-pagination__button { +.ams-pagination__button { /* The reset is included at the top of the block here, if you set it at the bottom `all: unset` overrides the `gap` property. */ @include button-reset; @@ -37,16 +37,16 @@ cursor: pointer; display: flex; gap: 0.5rem; - outline-offset: var(--amsterdam-pagination-button-outline-offset); - padding-inline: var(--amsterdam-pagination-button-padding-inline); - text-decoration-line: var(--amsterdam-pagination-button-text-decoration-line); - text-decoration-thickness: var(--amsterdam-pagination-button-text-decoration-thickness); - text-underline-offset: var(--amsterdam-pagination-button-text-underline-offset); + outline-offset: var(--ams-pagination-button-outline-offset); + padding-inline: var(--ams-pagination-button-padding-inline); + text-decoration-line: var(--ams-pagination-button-text-decoration-line); + text-decoration-thickness: var(--ams-pagination-button-text-decoration-thickness); + text-underline-offset: var(--ams-pagination-button-text-underline-offset); touch-action: manipulation; &:hover { - color: var(--amsterdam-pagination-button-hover-color); - text-decoration-line: var(--amsterdam-pagination-button-hover-text-decoration-line); + color: var(--ams-pagination-button-hover-color); + text-decoration-line: var(--ams-pagination-button-hover-text-decoration-line); } &:disabled { @@ -54,15 +54,15 @@ } // Override for icon size - span.amsterdam-icon svg { + span.ams-icon svg { height: 1rem; width: 1rem; } } -.amsterdam-pagination__button--current { +.ams-pagination__button--current { cursor: default; - font-weight: var(--amsterdam-pagination-button-current-font-weight); + font-weight: var(--ams-pagination-button-current-font-weight); &:hover { text-decoration: none; diff --git a/packages/css/src/components/paragraph/paragraph.scss b/packages/css/src/components/paragraph/paragraph.scss index 69b6c007ba..d5027d75c6 100644 --- a/packages/css/src/components/paragraph/paragraph.scss +++ b/packages/css/src/components/paragraph/paragraph.scss @@ -9,26 +9,26 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-paragraph { - color: var(--amsterdam-paragraph-color); - font-family: var(--amsterdam-paragraph-font-family); - font-size: var(--amsterdam-paragraph-medium-font-size); - font-weight: var(--amsterdam-paragraph-font-weight); - line-height: var(--amsterdam-paragraph-medium-line-height); +.ams-paragraph { + color: var(--ams-paragraph-color); + font-family: var(--ams-paragraph-font-family); + font-size: var(--ams-paragraph-medium-font-size); + font-weight: var(--ams-paragraph-font-weight); + line-height: var(--ams-paragraph-medium-line-height); @include reset; } -.amsterdam-paragraph--small { - font-size: var(--amsterdam-paragraph-small-font-size); - line-height: var(--amsterdam-paragraph-small-line-height); +.ams-paragraph--small { + font-size: var(--ams-paragraph-small-font-size); + line-height: var(--ams-paragraph-small-line-height); } -.amsterdam-paragraph--large { - font-size: var(--amsterdam-paragraph-large-font-size); - line-height: var(--amsterdam-paragraph-large-line-height); +.ams-paragraph--large { + font-size: var(--ams-paragraph-large-font-size); + line-height: var(--ams-paragraph-large-line-height); } -.amsterdam-paragraph--inverse-color { - color: var(--amsterdam-paragraph-inverse-color); +.ams-paragraph--inverse-color { + color: var(--ams-paragraph-inverse-color); } diff --git a/packages/css/src/components/radio/radio.scss b/packages/css/src/components/radio/radio.scss index ce6602d5cc..3a3a293c19 100644 --- a/packages/css/src/components/radio/radio.scss +++ b/packages/css/src/components/radio/radio.scss @@ -6,23 +6,23 @@ @import "../../common/input-label-focus"; @import "../../common/hide-input"; -.amsterdam-radio__input { +.ams-radio__input { @include hide-input; @include input-label-focus; } -.amsterdam-radio__circle { +.ams-radio__circle { align-items: center; display: flex; flex-shrink: 0; - height: calc(var(--amsterdam-radio-font-size) * var(--amsterdam-radio-line-height)); + height: calc(var(--ams-radio-font-size) * var(--ams-radio-line-height)); width: 1.5rem; &::after { background-position: center; background-repeat: no-repeat; background-size: 1rem; - border-color: var(--amsterdam-radio-circle-border-color); + border-color: var(--ams-radio-circle-border-color); border-radius: 100%; border-style: solid; border-width: 0.125rem; @@ -37,25 +37,25 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-radio__label { - color: var(--amsterdam-radio-color); +.ams-radio__label { + color: var(--ams-radio-color); cursor: pointer; display: inline-flex; - font-family: var(--amsterdam-radio-font-family); - font-size: var(--amsterdam-radio-font-size); - font-weight: var(--amsterdam-radio-font-weight); + font-family: var(--ams-radio-font-family); + font-size: var(--ams-radio-font-size); + font-weight: var(--ams-radio-font-weight); gap: 0.5rem; - line-height: var(--amsterdam-radio-line-height); - outline-offset: var(--amsterdam-radio-outline-offset); + line-height: var(--ams-radio-line-height); + outline-offset: var(--ams-radio-outline-offset); &:hover { - color: var(--amsterdam-radio-hover-color); + color: var(--ams-radio-hover-color); text-decoration-line: underline; text-decoration-thickness: 0.125rem; text-underline-offset: 0.375rem; - .amsterdam-radio__circle::after { - border-color: var(--amsterdam-radio-circle-hover-border-color); + .ams-radio__circle::after { + border-color: var(--ams-radio-circle-hover-border-color); } } @@ -63,95 +63,95 @@ } // Default checked -.amsterdam-radio__input:checked { - + .amsterdam-radio__label .amsterdam-radio__circle::after { - background-image: var(--amsterdam-radio-circle-checked-background-image); +.ams-radio__input:checked { + + .ams-radio__label .ams-radio__circle::after { + background-image: var(--ams-radio-circle-checked-background-image); } } // Invalid unchecked -.amsterdam-radio__input[aria-invalid="true"] { - + .amsterdam-radio__label .amsterdam-radio__circle::after { - border-color: var(--amsterdam-radio-circle-invalid-border-color); +.ams-radio__input[aria-invalid="true"] { + + .ams-radio__label .ams-radio__circle::after { + border-color: var(--ams-radio-circle-invalid-border-color); } } // Disabled unchecked -.amsterdam-radio__input:disabled { - + .amsterdam-radio__label { - color: var(--amsterdam-radio-disabled-color); +.ams-radio__input:disabled { + + .ams-radio__label { + color: var(--ams-radio-disabled-color); cursor: not-allowed; - .amsterdam-radio__circle::after { - border-color: var(--amsterdam-radio-circle-disabled-border-color); + .ams-radio__circle::after { + border-color: var(--ams-radio-circle-disabled-border-color); border-width: 0.125rem; } } } // Invalid checked -.amsterdam-radio__input[aria-invalid="true"]:checked { - + .amsterdam-radio__label .amsterdam-radio__circle::after { - background-image: var(--amsterdam-radio-circle-invalid-checked-background-image); +.ams-radio__input[aria-invalid="true"]:checked { + + .ams-radio__label .ams-radio__circle::after { + background-image: var(--ams-radio-circle-invalid-checked-background-image); } } // Disabled label -.amsterdam-radio__input:disabled + .amsterdam-radio__label:hover { +.ams-radio__input:disabled + .ams-radio__label:hover { text-decoration: none; } // Disabled checked -.amsterdam-radio__input:disabled:checked { - + .amsterdam-radio__label .amsterdam-radio__circle::after { - background-image: var(--amsterdam-radio-circle-disabled-checked-background-image); +.ams-radio__input:disabled:checked { + + .ams-radio__label .ams-radio__circle::after { + background-image: var(--ams-radio-circle-disabled-checked-background-image); } } // Disabled invalid unchecked -.amsterdam-radio__input[aria-invalid="true"]:disabled { - + .amsterdam-radio__label .amsterdam-radio__circle::after { +.ams-radio__input[aria-invalid="true"]:disabled { + + .ams-radio__label .ams-radio__circle::after { // TODO: currently disabled invalid gets the same styling as disabled. This should get its own styling. - border-color: var(--amsterdam-radio-circle-disabled-border-color); + border-color: var(--ams-radio-circle-disabled-border-color); } } // HOVER STATES // Invalid unchecked hover -.amsterdam-radio__input[aria-invalid="true"] + .amsterdam-radio__label:hover .amsterdam-radio__circle::after { +.ams-radio__input[aria-invalid="true"] + .ams-radio__label:hover .ams-radio__circle::after { // TODO: this should be the (currently non-existent) dark red hover color - border-color: var(--amsterdam-radio-circle-invalid-hover-border-color); + border-color: var(--ams-radio-circle-invalid-hover-border-color); } // Default checked hover -.amsterdam-radio__input:checked + .amsterdam-radio__label:hover .amsterdam-radio__circle::after { - background-image: var(--amsterdam-radio-circle-checked-hover-background-image); +.ams-radio__input:checked + .ams-radio__label:hover .ams-radio__circle::after { + background-image: var(--ams-radio-circle-checked-hover-background-image); } // Invalid checked hover -.amsterdam-radio__input[aria-invalid="true"]:checked + .amsterdam-radio__label:hover .amsterdam-radio__circle::after { +.ams-radio__input[aria-invalid="true"]:checked + .ams-radio__label:hover .ams-radio__circle::after { // TODO: this should be the (currently non-existent) dark red hover color - background-image: var(--amsterdam-radio-circle-invalid-checked-hover-background-image); + background-image: var(--ams-radio-circle-invalid-checked-hover-background-image); } // Disabled checked hover -.amsterdam-radio__input:disabled:checked + .amsterdam-radio__label:hover .amsterdam-radio__circle::after { - background-image: var(--amsterdam-radio-circle-disabled-checked-hover-background-image); +.ams-radio__input:disabled:checked + .ams-radio__label:hover .ams-radio__circle::after { + background-image: var(--ams-radio-circle-disabled-checked-hover-background-image); } // Disabled invalid unchecked hover -.amsterdam-radio__input[aria-invalid="true"]:disabled + .amsterdam-radio__label:hover .amsterdam-radio__circle::after { +.ams-radio__input[aria-invalid="true"]:disabled + .ams-radio__label:hover .ams-radio__circle::after { // TODO: currently disabled invalid gets the same styling as disabled. This should get its own styling. - border-color: var(--amsterdam-radio-circle-disabled-border-color); + border-color: var(--ams-radio-circle-disabled-border-color); } // DISABLED INVALID STATES // Disabled invalid checked -.amsterdam-radio__input[aria-invalid="true"]:disabled:checked { - + .amsterdam-radio__label .amsterdam-radio__circle::after { +.ams-radio__input[aria-invalid="true"]:disabled:checked { + + .ams-radio__label .ams-radio__circle::after { // TODO: currently disabled invalid gets the same styling as disabled. This should get its own styling. - background-image: var(--amsterdam-radio-circle-disabled-checked-background-image); + background-image: var(--ams-radio-circle-disabled-checked-background-image); } } diff --git a/packages/css/src/components/row/row.scss b/packages/css/src/components/row/row.scss index 088f312fa7..1f328695e2 100644 --- a/packages/css/src/components/row/row.scss +++ b/packages/css/src/components/row/row.scss @@ -5,13 +5,13 @@ @import "../../common/size"; -.amsterdam-row { +.ams-row { display: flex; flex-direction: row; } -@each $size, $label in $amsterdam-sizes { - .amsterdam-row--#{$label} { - gap: var(--amsterdam-row-gap-#{$size}); +@each $size, $label in $ams-sizes { + .ams-row--#{$label} { + gap: var(--ams-row-gap-#{$size}); } } diff --git a/packages/css/src/components/screen/screen.scss b/packages/css/src/components/screen/screen.scss index 7b665e0ea9..2a8f128c2b 100644 --- a/packages/css/src/components/screen/screen.scss +++ b/packages/css/src/components/screen/screen.scss @@ -7,16 +7,16 @@ box-sizing: border-box; } -.amsterdam-screen { +.ams-screen { @include reset; margin-inline: auto; } -.amsterdam-screen--wide { - max-width: var(--amsterdam-screen-wide-max-width); +.ams-screen--wide { + max-width: var(--ams-screen-wide-max-width); } -.amsterdam-screen--x-wide { - max-width: var(--amsterdam-screen-x-wide-max-width); +.ams-screen--x-wide { + max-width: var(--ams-screen-x-wide-max-width); } diff --git a/packages/css/src/components/search-field/search-field.scss b/packages/css/src/components/search-field/search-field.scss index 6e26677c24..d762d78ea1 100644 --- a/packages/css/src/components/search-field/search-field.scss +++ b/packages/css/src/components/search-field/search-field.scss @@ -3,7 +3,7 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-search-field { +.ams-search-field { display: flex; isolation: isolate; // create new stacking context, so the input’s z-index doesn’t escape the component } @@ -14,24 +14,24 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-search-field__input { +.ams-search-field__input { border: none; - box-shadow: var(--amsterdam-search-field-input-box-shadow); - color: var(--amsterdam-search-field-input-color); - font-family: var(--amsterdam-search-field-input-font-family); - font-size: var(--amsterdam-search-field-input-font-size); - font-weight: var(--amsterdam-search-field-input-font-weight); - line-height: var(--amsterdam-search-field-input-line-height); - outline-offset: var(--amsterdam-search-field-input-outline-offset); - padding-block: var(--amsterdam-search-field-input-padding-block); - padding-inline: var(--amsterdam-search-field-input-padding-inline); + box-shadow: var(--ams-search-field-input-box-shadow); + color: var(--ams-search-field-input-color); + font-family: var(--ams-search-field-input-font-family); + font-size: var(--ams-search-field-input-font-size); + font-weight: var(--ams-search-field-input-font-weight); + line-height: var(--ams-search-field-input-line-height); + outline-offset: var(--ams-search-field-input-outline-offset); + padding-block: var(--ams-search-field-input-padding-block); + padding-inline: var(--ams-search-field-input-padding-inline); touch-action: manipulation; width: 100%; @include reset; &:hover { - box-shadow: var(--amsterdam-search-field-input-hover-box-shadow); + box-shadow: var(--ams-search-field-input-hover-box-shadow); } &:focus { @@ -39,32 +39,32 @@ } } -.amsterdam-search-field__input::placeholder { - color: var(--amsterdam-search-field-input-placeholder-color); +.ams-search-field__input::placeholder { + color: var(--ams-search-field-input-placeholder-color); } -.amsterdam-search-field__input::-webkit-search-cancel-button { +.ams-search-field__input::-webkit-search-cancel-button { appearance: none; - background-image: var(--amsterdam-search-field-input-cancel-button-background-image); + background-image: var(--ams-search-field-input-cancel-button-background-image); cursor: pointer; - height: var(--amsterdam-search-field-input-cancel-button-height); + height: var(--ams-search-field-input-cancel-button-height); margin-inline-start: 0.5rem; - width: var(--amsterdam-search-field-input-cancel-button-width); + width: var(--ams-search-field-input-cancel-button-width); } -.amsterdam-search-field__button { - background-color: var(--amsterdam-search-field-button-background-color); +.ams-search-field__button { + background-color: var(--ams-search-field-button-background-color); border: 0; - color: var(--amsterdam-search-field-button-color); + color: var(--ams-search-field-button-color); cursor: pointer; - outline-offset: var(--amsterdam-search-field-button-outline-offset); + outline-offset: var(--ams-search-field-button-outline-offset); // TODO Check if these paddings are necessary - padding-block: var(--amsterdam-search-field-button-padding-block); - padding-inline: var(--amsterdam-search-field-button-padding-inline); + padding-block: var(--ams-search-field-button-padding-block); + padding-inline: var(--ams-search-field-button-padding-inline); touch-action: manipulation; &:hover { - background-color: var(--amsterdam-search-field-button-hover-background-color); + background-color: var(--ams-search-field-button-hover-background-color); } } diff --git a/packages/css/src/components/skip-link/skip-link.scss b/packages/css/src/components/skip-link/skip-link.scss index cbb2fab962..2aa0ff049f 100644 --- a/packages/css/src/components/skip-link/skip-link.scss +++ b/packages/css/src/components/skip-link/skip-link.scss @@ -3,21 +3,21 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-skip-link { - background-color: var(--amsterdam-skip-link-background-color); - color: var(--amsterdam-skip-link-color); +.ams-skip-link { + background-color: var(--ams-skip-link-background-color); + color: var(--ams-skip-link-color); display: block; - font-family: var(--amsterdam-skip-link-font-family); - font-size: var(--amsterdam-skip-link-font-size); - font-weight: var(--amsterdam-skip-link-font-weight); - line-height: var(--amsterdam-skip-link-line-height); - outline-offset: var(--amsterdam-skip-link-outline-offset); - padding-block: var(--amsterdam-skip-link-padding-block); - padding-inline: var(--amsterdam-skip-link-padding-inline); + font-family: var(--ams-skip-link-font-family); + font-size: var(--ams-skip-link-font-size); + font-weight: var(--ams-skip-link-font-weight); + line-height: var(--ams-skip-link-line-height); + outline-offset: var(--ams-skip-link-outline-offset); + padding-block: var(--ams-skip-link-padding-block); + padding-inline: var(--ams-skip-link-padding-inline); text-align: center; text-decoration: none; &:hover { - background-color: var(--amsterdam-skip-link-hover-background-color); + background-color: var(--ams-skip-link-hover-background-color); } } diff --git a/packages/css/src/components/spotlight/spotlight.scss b/packages/css/src/components/spotlight/spotlight.scss index ee0bba81bf..7ad4f952a3 100644 --- a/packages/css/src/components/spotlight/spotlight.scss +++ b/packages/css/src/components/spotlight/spotlight.scss @@ -3,34 +3,34 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-spotlight--blue { - background-color: var(--amsterdam-spotlight-blue-background-color); +.ams-spotlight--blue { + background-color: var(--ams-spotlight-blue-background-color); } -.amsterdam-spotlight--dark-blue { - background-color: var(--amsterdam-spotlight-dark-blue-background-color); +.ams-spotlight--dark-blue { + background-color: var(--ams-spotlight-dark-blue-background-color); } -.amsterdam-spotlight--dark-green { - background-color: var(--amsterdam-spotlight-dark-green-background-color); +.ams-spotlight--dark-green { + background-color: var(--ams-spotlight-dark-green-background-color); } -.amsterdam-spotlight--green { - background-color: var(--amsterdam-spotlight-green-background-color); +.ams-spotlight--green { + background-color: var(--ams-spotlight-green-background-color); } -.amsterdam-spotlight--magenta { - background-color: var(--amsterdam-spotlight-magenta-background-color); +.ams-spotlight--magenta { + background-color: var(--ams-spotlight-magenta-background-color); } -.amsterdam-spotlight--orange { - background-color: var(--amsterdam-spotlight-orange-background-color); +.ams-spotlight--orange { + background-color: var(--ams-spotlight-orange-background-color); } -.amsterdam-spotlight--purple { - background-color: var(--amsterdam-spotlight-purple-background-color); +.ams-spotlight--purple { + background-color: var(--ams-spotlight-purple-background-color); } -.amsterdam-spotlight--yellow { - background-color: var(--amsterdam-spotlight-yellow-background-color); +.ams-spotlight--yellow { + background-color: var(--ams-spotlight-yellow-background-color); } diff --git a/packages/css/src/components/switch/switch.scss b/packages/css/src/components/switch/switch.scss index a5e1dcdc3c..a8195597f7 100644 --- a/packages/css/src/components/switch/switch.scss +++ b/packages/css/src/components/switch/switch.scss @@ -10,51 +10,51 @@ box-sizing: border-box; } -.amsterdam-switch__input { +.ams-switch__input { @include hide-input; @include input-label-focus; } -.amsterdam-switch__label { - background-color: var(--amsterdam-switch-background-color); - border-radius: calc(var(--amsterdam-switch-thumb-width) * 2); +.ams-switch__label { + background-color: var(--ams-switch-background-color); + border-radius: calc(var(--ams-switch-thumb-width) * 2); cursor: pointer; display: inline-block; - outline-offset: var(--amsterdam-switch-outline-offset); + outline-offset: var(--ams-switch-outline-offset); padding-block: 1px; padding-inline: 1px; transition: background-color 0.2s ease-in-out; - width: var(--amsterdam-switch-width); + width: var(--ams-switch-width); @include reset; } -.amsterdam-switch__label::before { - background-color: var(--amsterdam-switch-thumb-background-color); +.ams-switch__label::before { + background-color: var(--ams-switch-thumb-background-color); border-radius: 50%; content: ""; display: block; - height: var(--amsterdam-switch-thumb-height); + height: var(--ams-switch-thumb-height); transition-duration: 0.1s; transition-property: box-shadow, transform; transition-timing-function: ease-in-out; - width: var(--amsterdam-switch-thumb-width); + width: var(--ams-switch-thumb-width); } -.amsterdam-switch__input:checked + .amsterdam-switch__label { - background-color: var(--amsterdam-switch-checked-background-color); +.ams-switch__input:checked + .ams-switch__label { + background-color: var(--ams-switch-checked-background-color); } -.amsterdam-switch__input:disabled + .amsterdam-switch__label { - background-color: var(--amsterdam-switch-disabled-background-color); +.ams-switch__input:disabled + .ams-switch__label { + background-color: var(--ams-switch-disabled-background-color); cursor: not-allowed; } -.amsterdam-switch__input:checked + .amsterdam-switch__label::before { +.ams-switch__input:checked + .ams-switch__label::before { // The 2px is to account for the 1px padding-inline on the label - transform: translate(calc(var(--amsterdam-switch-width) - var(--amsterdam-switch-thumb-width) - 2px)); + transform: translate(calc(var(--ams-switch-width) - var(--ams-switch-thumb-width) - 2px)); } -.amsterdam-switch:hover .amsterdam-switch__input:enabled + .amsterdam-switch__label::before { - box-shadow: 0 0 0 2px var(--amsterdam-switch-thumb-hover-color); +.ams-switch:hover .ams-switch__input:enabled + .ams-switch__label::before { + box-shadow: 0 0 0 2px var(--ams-switch-thumb-hover-color); } diff --git a/packages/css/src/components/table/table.scss b/packages/css/src/components/table/table.scss index 733f2cb25c..3d20a1f977 100644 --- a/packages/css/src/components/table/table.scss +++ b/packages/css/src/components/table/table.scss @@ -3,34 +3,34 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-table { +.ams-table { overflow-x: auto; } -.amsterdam-table__table { +.ams-table__table { border-spacing: 0; break-inside: avoid; - color: var(--amsterdam-table-color); - font-family: var(--amsterdam-table-font-family); - font-size: var(--amsterdam-table-font-size); - font-weight: var(--amsterdam-table-font-weight); - line-height: var(--amsterdam-table-line-height); + color: var(--ams-table-color); + font-family: var(--ams-table-font-family); + font-size: var(--ams-table-font-size); + font-weight: var(--ams-table-font-weight); + line-height: var(--ams-table-line-height); } -.amsterdam-table__caption { - font-weight: var(--amsterdam-table-caption-font-weight); +.ams-table__caption { + font-weight: var(--ams-table-caption-font-weight); text-align: start; } -.amsterdam-table__cell, -.amsterdam-table__header-cell { - border-bottom: var(--amsterdam-table-cell-border-bottom); - padding-block: var(--amsterdam-table-cell-padding-block); - padding-inline: var(--amsterdam-table-cell-padding-inline); +.ams-table__cell, +.ams-table__header-cell { + border-bottom: var(--ams-table-cell-border-bottom); + padding-block: var(--ams-table-cell-padding-block); + padding-inline: var(--ams-table-cell-padding-inline); text-align: start; vertical-align: top; } -.amsterdam-table__header-cell { - font-weight: var(--amsterdam-table-header-cell-font-weight); +.ams-table__header-cell { + font-weight: var(--ams-table-header-cell-font-weight); } diff --git a/packages/css/src/components/tabs/tabs.scss b/packages/css/src/components/tabs/tabs.scss index e23466f721..9d3aa76fa9 100644 --- a/packages/css/src/components/tabs/tabs.scss +++ b/packages/css/src/components/tabs/tabs.scss @@ -5,37 +5,37 @@ @import "../../common/breakpoint"; -.amsterdam-tabs__list { - border-bottom: var(--amsterdam-tabs-list-border-bottom); +.ams-tabs__list { + border-bottom: var(--ams-tabs-list-border-bottom); display: flex; overflow-x: auto; } -.amsterdam-tabs__button { - background-color: var(--amsterdam-tabs-button-background-color); - border: var(--amsterdam-tabs-button-border); - color: var(--amsterdam-tabs-button-color); - cursor: var(--amsterdam-tabs-button-cursor); - font-family: var(--amsterdam-tabs-button-font-family); - font-size: var(--amsterdam-tabs-button-font-size); - font-weight: var(--amsterdam-tabs-button-font-weight); - line-height: var(--amsterdam-tabs-button-line-height); - outline-offset: var(--amsterdam-tabs-button-outline-offset); - padding-block: var(--amsterdam-tabs-button-padding-block); - padding-inline: var(--amsterdam-tabs-button-padding-inline); +.ams-tabs__button { + background-color: var(--ams-tabs-button-background-color); + border: var(--ams-tabs-button-border); + color: var(--ams-tabs-button-color); + cursor: var(--ams-tabs-button-cursor); + font-family: var(--ams-tabs-button-font-family); + font-size: var(--ams-tabs-button-font-size); + font-weight: var(--ams-tabs-button-font-weight); + line-height: var(--ams-tabs-button-line-height); + outline-offset: var(--ams-tabs-button-outline-offset); + padding-block: var(--ams-tabs-button-padding-block); + padding-inline: var(--ams-tabs-button-padding-inline); &:disabled { - color: var(--amsterdam-tabs-button-disabled-color); - cursor: var(--amsterdam-tab-button-disabled-cursor); + color: var(--ams-tabs-button-disabled-color); + cursor: var(--ams-tab-button-disabled-cursor); } &:hover:not([aria-selected="true"], [disabled]) { - box-shadow: var(--amsterdam-tabs-button-hover-box-shadow); - color: var(--amsterdam-tabs-button-hover-color); + box-shadow: var(--ams-tabs-button-hover-box-shadow); + color: var(--ams-tabs-button-hover-color); } &[aria-selected="true"] { - background-color: var(--amsterdam-tabs-button-selected-background-color); - color: var(--amsterdam-tabs-button-selected-color); + background-color: var(--ams-tabs-button-selected-background-color); + color: var(--ams-tabs-button-selected-color); } } diff --git a/packages/css/src/components/text-area/text-area.scss b/packages/css/src/components/text-area/text-area.scss index 995ab27e8f..3b61da8b92 100644 --- a/packages/css/src/components/text-area/text-area.scss +++ b/packages/css/src/components/text-area/text-area.scss @@ -9,62 +9,62 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-text-area { +.ams-text-area { border: none; - box-shadow: var(--amsterdam-text-area-box-shadow); - color: var(--amsterdam-text-area-color); - font-family: var(--amsterdam-text-area-font-family); - font-size: var(--amsterdam-text-area-font-size); - font-weight: var(--amsterdam-text-area-font-weight); - line-height: var(--amsterdam-text-area-line-height); + box-shadow: var(--ams-text-area-box-shadow); + color: var(--ams-text-area-color); + font-family: var(--ams-text-area-font-family); + font-size: var(--ams-text-area-font-size); + font-weight: var(--ams-text-area-font-weight); + line-height: var(--ams-text-area-line-height); max-width: 100%; - min-height: var(--amsterdam-text-area-min-height); - outline-offset: var(--amsterdam-text-area-outline-offset); - padding-block: var(--amsterdam-text-area-padding-block); - padding-inline: var(--amsterdam-text-area-padding-inline); + min-height: var(--ams-text-area-min-height); + outline-offset: var(--ams-text-area-outline-offset); + padding-block: var(--ams-text-area-padding-block); + padding-inline: var(--ams-text-area-padding-inline); touch-action: manipulation; width: 100%; @include reset; &:hover { - box-shadow: var(--amsterdam-text-area-hover-box-shadow); + box-shadow: var(--ams-text-area-hover-box-shadow); } } -.amsterdam-text-area::placeholder { - color: var(--amsterdam-text-area-placeholder-color); +.ams-text-area::placeholder { + color: var(--ams-text-area-placeholder-color); } -.amsterdam-text-area:disabled { - background-color: var(--amsterdam-text-area-disabled-background-color); - box-shadow: var(--amsterdam-text-area-disabled-box-shadow); - color: var(--amsterdam-text-area-disabled-color); - cursor: var(--amsterdam-text-area-disabled-cursor); +.ams-text-area:disabled { + background-color: var(--ams-text-area-disabled-background-color); + box-shadow: var(--ams-text-area-disabled-box-shadow); + color: var(--ams-text-area-disabled-color); + cursor: var(--ams-text-area-disabled-cursor); } -.amsterdam-text-area:invalid, -.amsterdam-text-area[aria-invalid="true"] { - box-shadow: var(--amsterdam-text-area-invalid-box-shadow); +.ams-text-area:invalid, +.ams-text-area[aria-invalid="true"] { + box-shadow: var(--ams-text-area-invalid-box-shadow); &:hover { // TODO: this should be the (currently non-existent) dark red hover color - box-shadow: var(--amsterdam-text-area-invalid-hover-box-shadow); + box-shadow: var(--ams-text-area-invalid-hover-box-shadow); } } -.amsterdam-text-area--resize-none { +.ams-text-area--resize-none { resize: none; } -.amsterdam-text-area--resize-horizontal { +.ams-text-area--resize-horizontal { resize: inline; } -.amsterdam-text-area--resize-vertical { +.ams-text-area--resize-vertical { resize: block; } -.amsterdam-text-area--cols { +.ams-text-area--cols { width: auto; } diff --git a/packages/css/src/components/text-input/text-input.scss b/packages/css/src/components/text-input/text-input.scss index 288f772046..74b3b369b8 100644 --- a/packages/css/src/components/text-input/text-input.scss +++ b/packages/css/src/components/text-input/text-input.scss @@ -9,44 +9,44 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-text-input { +.ams-text-input { border: none; - box-shadow: var(--amsterdam-text-input-box-shadow); - color: var(--amsterdam-text-input-color); - font-family: var(--amsterdam-text-input-font-family); - font-size: var(--amsterdam-text-input-font-size); - font-weight: var(--amsterdam-text-input-font-weight); - line-height: var(--amsterdam-text-input-line-height); - outline-offset: var(--amsterdam-text-input-outline-offset); - padding-block: var(--amsterdam-text-input-padding-block); - padding-inline: var(--amsterdam-text-input-padding-inline); + box-shadow: var(--ams-text-input-box-shadow); + color: var(--ams-text-input-color); + font-family: var(--ams-text-input-font-family); + font-size: var(--ams-text-input-font-size); + font-weight: var(--ams-text-input-font-weight); + line-height: var(--ams-text-input-line-height); + outline-offset: var(--ams-text-input-outline-offset); + padding-block: var(--ams-text-input-padding-block); + padding-inline: var(--ams-text-input-padding-inline); touch-action: manipulation; width: 100%; @include reset; &:hover { - box-shadow: var(--amsterdam-text-input-hover-box-shadow); + box-shadow: var(--ams-text-input-hover-box-shadow); } } -.amsterdam-text-input::placeholder { - color: var(--amsterdam-text-input-placeholder-color); +.ams-text-input::placeholder { + color: var(--ams-text-input-placeholder-color); } -.amsterdam-text-input:disabled { - background-color: var(--amsterdam-text-input-disabled-background-color); - box-shadow: var(--amsterdam-text-input-disabled-box-shadow); - color: var(--amsterdam-text-input-disabled-color); +.ams-text-input:disabled { + background-color: var(--ams-text-input-disabled-background-color); + box-shadow: var(--ams-text-input-disabled-box-shadow); + color: var(--ams-text-input-disabled-color); cursor: not-allowed; } -.amsterdam-text-input:invalid, -.amsterdam-text-input[aria-invalid="true"] { - box-shadow: var(--amsterdam-text-input-invalid-box-shadow); +.ams-text-input:invalid, +.ams-text-input[aria-invalid="true"] { + box-shadow: var(--ams-text-input-invalid-box-shadow); &:hover { // TODO: this should be the (currently non-existent) dark red hover color - box-shadow: var(--amsterdam-text-input-invalid-hover-box-shadow); + box-shadow: var(--ams-text-input-invalid-hover-box-shadow); } } diff --git a/packages/css/src/components/top-task-link/top-task-link.scss b/packages/css/src/components/top-task-link/top-task-link.scss index 6f8f94dc31..956909b4b2 100644 --- a/packages/css/src/components/top-task-link/top-task-link.scss +++ b/packages/css/src/components/top-task-link/top-task-link.scss @@ -5,12 +5,12 @@ @import "../../common/hyphenation"; -.amsterdam-top-task-link { +.ams-top-task-link { break-inside: avoid; display: flex; flex-direction: column; gap: 0.5rem; - outline-offset: var(--amsterdam-top-task-link-outline-offset); + outline-offset: var(--ams-top-task-link-outline-offset); text-decoration: none; } @@ -19,31 +19,31 @@ -webkit-text-size-adjust: 100%; } -.amsterdam-top-task-link__label { - color: var(--amsterdam-top-task-link-label-color); - font-family: var(--amsterdam-top-task-link-label-font-family); - font-size: var(--amsterdam-top-task-link-label-font-size); - font-weight: var(--amsterdam-top-task-link-label-font-weight); - line-height: var(--amsterdam-top-task-link-label-line-height); - text-decoration-line: var(--amsterdam-top-task-link-label-text-decoration-line); - text-decoration-thickness: var(--amsterdam-top-task-link-label-text-decoration-thickness); - text-underline-offset: var(--amsterdam-top-task-link-label-text-underline-offset); +.ams-top-task-link__label { + color: var(--ams-top-task-link-label-color); + font-family: var(--ams-top-task-link-label-font-family); + font-size: var(--ams-top-task-link-label-font-size); + font-weight: var(--ams-top-task-link-label-font-weight); + line-height: var(--ams-top-task-link-label-line-height); + text-decoration-line: var(--ams-top-task-link-label-text-decoration-line); + text-decoration-thickness: var(--ams-top-task-link-label-text-decoration-thickness); + text-underline-offset: var(--ams-top-task-link-label-text-underline-offset); @include hyphenation; @include reset; } -.amsterdam-top-task-link:hover .amsterdam-top-task-link__label { - color: var(--amsterdam-top-task-link-label-hover-color); - text-decoration-line: var(--amsterdam-top-task-link-label-hover-text-decoration-line); +.ams-top-task-link:hover .ams-top-task-link__label { + color: var(--ams-top-task-link-label-hover-color); + text-decoration-line: var(--ams-top-task-link-label-hover-text-decoration-line); } -.amsterdam-top-task-link__description { - color: var(--amsterdam-top-task-link-description-color); - font-family: var(--amsterdam-top-task-link-description-font-family); - font-size: var(--amsterdam-top-task-link-description-font-size); - font-weight: var(--amsterdam-top-task-link-description-font-weight); - line-height: var(--amsterdam-top-task-link-description-line-height); +.ams-top-task-link__description { + color: var(--ams-top-task-link-description-color); + font-family: var(--ams-top-task-link-description-font-family); + font-size: var(--ams-top-task-link-description-font-size); + font-weight: var(--ams-top-task-link-description-font-weight); + line-height: var(--ams-top-task-link-description-line-height); @include reset; } diff --git a/packages/css/src/components/unordered-list/unordered-list.scss b/packages/css/src/components/unordered-list/unordered-list.scss index d837d4d2c3..d75e61e497 100644 --- a/packages/css/src/components/unordered-list/unordered-list.scss +++ b/packages/css/src/components/unordered-list/unordered-list.scss @@ -13,39 +13,39 @@ } /** A list is a grid column with a gap between items. */ -.amsterdam-unordered-list { +.ams-unordered-list { @include reset; display: grid; - gap: var(--amsterdam-unordered-list-gap); + gap: var(--ams-unordered-list-gap); } /** A list with markers sets typography for its text content. */ -.amsterdam-unordered-list:not(.amsterdam-unordered-list--no-markers) { - color: var(--amsterdam-unordered-list-color); - font-family: var(--amsterdam-unordered-list-font-family); - font-size: var(--amsterdam-unordered-list-font-size); - font-weight: var(--amsterdam-unordered-list-font-weight); - line-height: var(--amsterdam-unordered-list-line-height); - list-style-type: var(--amsterdam-unordered-list-list-style-type); +.ams-unordered-list:not(.ams-unordered-list--no-markers) { + color: var(--ams-unordered-list-color); + font-family: var(--ams-unordered-list-font-family); + font-size: var(--ams-unordered-list-font-size); + font-weight: var(--ams-unordered-list-font-weight); + line-height: var(--ams-unordered-list-line-height); + list-style-type: var(--ams-unordered-list-list-style-type); /** List items are responsible for indentation and marker positioning. */ - .amsterdam-unordered-list__item { - margin-inline-start: var(--amsterdam-unordered-list-item-margin-inline-start); - padding-inline-start: var(--amsterdam-unordered-list-item-padding-inline-start); + .ams-unordered-list__item { + margin-inline-start: var(--ams-unordered-list-item-margin-inline-start); + padding-inline-start: var(--ams-unordered-list-item-padding-inline-start); } } -.amsterdam-unordered-list--inverse-color:not(.amsterdam-unordered-list--no-markers) { - color: var(--amsterdam-unordered-list-inverse-color); +.ams-unordered-list--inverse-color:not(.ams-unordered-list--no-markers) { + color: var(--ams-unordered-list-inverse-color); } /** A nested list has a different marker and less indentation for correct alignment. */ -:is(.amsterdam-ordered-list, .amsterdam-unordered-list) .amsterdam-unordered-list { - list-style-type: var(--amsterdam-unordered-list-unordered-list-list-style-type); +:is(.ams-ordered-list, .ams-unordered-list) .ams-unordered-list { + list-style-type: var(--ams-unordered-list-unordered-list-list-style-type); - .amsterdam-unordered-list__item { - margin-inline-start: var(--amsterdam-unordered-list-unordered-list-item-margin-inline-start); - padding-inline-start: var(--amsterdam-unordered-list-unordered-list-item-padding-inline-start); + .ams-unordered-list__item { + margin-inline-start: var(--ams-unordered-list-unordered-list-item-margin-inline-start); + padding-inline-start: var(--ams-unordered-list-unordered-list-item-padding-inline-start); } } diff --git a/packages/css/src/components/visually-hidden/visually-hidden.scss b/packages/css/src/components/visually-hidden/visually-hidden.scss index 0b2ea90b59..ea8035d215 100644 --- a/packages/css/src/components/visually-hidden/visually-hidden.scss +++ b/packages/css/src/components/visually-hidden/visually-hidden.scss @@ -4,7 +4,7 @@ */ // Source: https://css-tricks.com/inclusively-hidden/ -.amsterdam-visually-hidden:not(:active, :focus) { +.ams-visually-hidden:not(:active, :focus) { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; diff --git a/packages/react/documentation/coding-conventions.md b/packages/react/documentation/coding-conventions.md index 1503f0c172..9e119f795c 100644 --- a/packages/react/documentation/coding-conventions.md +++ b/packages/react/documentation/coding-conventions.md @@ -36,6 +36,6 @@ Subcomponents (e.g. `Grid.Cell`) are kept in separate files (e.g. `GridCell.tsx` ## Text for screen readers only -Use [Visually Hidden](https://amsterdam.github.io/design-system/?path=/docs/react_containers-visually-hidden--docs) or the `amsterdam-visually-hidden` utility class to hide content from sighted users but keep it accessible to non-visual user agents, such as screen readers. +Use [Visually Hidden](https://amsterdam.github.io/design-system/?path=/docs/react_containers-visually-hidden--docs) or the `ams-visually-hidden` utility class to hide content from sighted users but keep it accessible to non-visual user agents, such as screen readers. Do not use `aria-label`. Tools for automatic translation often [do not translate its value](https://adrianroselli.com/2019/11/aria-label-does-not-translate.html), and it may get overlooked when doing manual translation. diff --git a/packages/react/src/Accordion/Accordion.test.tsx b/packages/react/src/Accordion/Accordion.test.tsx index 1fa08f57a8..0905200da5 100644 --- a/packages/react/src/Accordion/Accordion.test.tsx +++ b/packages/react/src/Accordion/Accordion.test.tsx @@ -7,7 +7,7 @@ describe('Accordion', () => { it('renders an accordion', () => { const { container } = render() - const accordion = container.querySelector('.amsterdam-accordion') + const accordion = container.querySelector('.ams-accordion') expect(accordion).toBeInTheDocument() expect(accordion).toBeVisible() @@ -16,7 +16,7 @@ describe('Accordion', () => { it('renders an additional class name', () => { const { container } = render() - const accordion = container.querySelector('.amsterdam-accordion') + const accordion = container.querySelector('.ams-accordion') expect(accordion).toHaveClass('test') }) @@ -26,7 +26,7 @@ describe('Accordion', () => { const { container } = render() - const accordion = container.querySelector('.amsterdam-accordion') + const accordion = container.querySelector('.ams-accordion') expect(ref.current).toBe(accordion) }) diff --git a/packages/react/src/Accordion/Accordion.tsx b/packages/react/src/Accordion/Accordion.tsx index 0dce22f422..805080162f 100644 --- a/packages/react/src/Accordion/Accordion.tsx +++ b/packages/react/src/Accordion/Accordion.tsx @@ -31,7 +31,7 @@ export const Accordion = forwardRef( return ( -
+
{children}
diff --git a/packages/react/src/Accordion/AccordionSection.test.tsx b/packages/react/src/Accordion/AccordionSection.test.tsx index 994decfb46..2f86a51a2d 100644 --- a/packages/react/src/Accordion/AccordionSection.test.tsx +++ b/packages/react/src/Accordion/AccordionSection.test.tsx @@ -10,7 +10,7 @@ describe('Accordion section', () => { it('renders an accordion section', () => { const { container } = render({testContent}) - const accordionSection = container.querySelector('.amsterdam-accordion__section') + const accordionSection = container.querySelector('.ams-accordion__section') expect(accordionSection).toBeInTheDocument() expect(accordionSection).toBeVisible() @@ -25,10 +25,10 @@ describe('Accordion section', () => { const button = screen.getByRole('button', { name: testLabel, }) - const section = container.querySelector('.amsterdam-accordion__panel') + const section = container.querySelector('.ams-accordion__panel') - expect(heading).toHaveClass('amsterdam-accordion__header') - expect(button).toHaveClass('amsterdam-accordion__button') + expect(heading).toHaveClass('ams-accordion__header') + expect(button).toHaveClass('ams-accordion__button') expect(section).toBeInTheDocument() }) @@ -40,11 +40,11 @@ describe('Accordion section', () => { }) const sectionContent = getByText(testContent) - expect(sectionContent).not.toHaveClass('amsterdam-accordion__panel--expanded') + expect(sectionContent).not.toHaveClass('ams-accordion__panel--expanded') fireEvent.click(button) - expect(sectionContent).toHaveClass('amsterdam-accordion__panel--expanded') + expect(sectionContent).toHaveClass('ams-accordion__panel--expanded') fireEvent.click(button) - expect(sectionContent).not.toHaveClass('amsterdam-accordion__panel--expanded') + expect(sectionContent).not.toHaveClass('ams-accordion__panel--expanded') }) it('adds --expanded class when expanded prop is true', () => { @@ -56,7 +56,7 @@ describe('Accordion section', () => { const sectionContent = getByText(testContent) - expect(sectionContent).toHaveClass('amsterdam-accordion__panel--expanded') + expect(sectionContent).toHaveClass('ams-accordion__panel--expanded') }) it('renders a section HTML tag by defaultt', () => { @@ -117,7 +117,7 @@ describe('Accordion section', () => { , ) - const accordionSection = container.querySelector('.amsterdam-accordion__section') + const accordionSection = container.querySelector('.ams-accordion__section') expect(accordionSection).toHaveClass('test') }) @@ -131,7 +131,7 @@ describe('Accordion section', () => { , ) - const accordionSection = container.querySelector('.amsterdam-accordion__section') + const accordionSection = container.querySelector('.ams-accordion__section') expect(ref.current).toBe(accordionSection) }) diff --git a/packages/react/src/Accordion/AccordionSection.tsx b/packages/react/src/Accordion/AccordionSection.tsx index 28184dd957..f6c942562c 100644 --- a/packages/react/src/Accordion/AccordionSection.tsx +++ b/packages/react/src/Accordion/AccordionSection.tsx @@ -30,12 +30,12 @@ export const AccordionSection = forwardRef( const panelId = `panel-${id}` return ( -
- +
+ diff --git a/packages/react/src/SearchField/SearchFieldInput.test.tsx b/packages/react/src/SearchField/SearchFieldInput.test.tsx index 2575a3beed..f71a1049f6 100644 --- a/packages/react/src/SearchField/SearchFieldInput.test.tsx +++ b/packages/react/src/SearchField/SearchFieldInput.test.tsx @@ -19,7 +19,7 @@ describe('Search field input', () => { const component = screen.getByRole('searchbox', { name: 'Zoeken' }) - expect(component).toHaveClass('amsterdam-search-field__input') + expect(component).toHaveClass('ams-search-field__input') }) it('renders an additional class name', () => { @@ -29,7 +29,7 @@ describe('Search field input', () => { expect(component).toHaveClass('extra') - expect(component).toHaveClass('amsterdam-search-field__input') + expect(component).toHaveClass('ams-search-field__input') }) it('supports a custom label', () => { diff --git a/packages/react/src/SearchField/SearchFieldInput.tsx b/packages/react/src/SearchField/SearchFieldInput.tsx index e67aed3d75..bae748ca79 100644 --- a/packages/react/src/SearchField/SearchFieldInput.tsx +++ b/packages/react/src/SearchField/SearchFieldInput.tsx @@ -24,7 +24,7 @@ export const SearchFieldInput = forwardRef( { const component = screen.getByRole('link') - expect(component).toHaveClass('amsterdam-skip-link') + expect(component).toHaveClass('ams-skip-link') }) it('renders an additional class name', () => { @@ -26,7 +26,7 @@ describe('Skip link', () => { const component = screen.getByRole('link') - expect(component).toHaveClass('amsterdam-skip-link extra') + expect(component).toHaveClass('ams-skip-link extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/SkipLink/SkipLink.tsx b/packages/react/src/SkipLink/SkipLink.tsx index 8c4d3c71ff..599b997c92 100644 --- a/packages/react/src/SkipLink/SkipLink.tsx +++ b/packages/react/src/SkipLink/SkipLink.tsx @@ -11,7 +11,7 @@ export type SkipLinkProps = PropsWithChildren) => ( - + {children} ), diff --git a/packages/react/src/Spotlight/Spotlight.test.tsx b/packages/react/src/Spotlight/Spotlight.test.tsx index 3656698cbd..1e1e813d20 100644 --- a/packages/react/src/Spotlight/Spotlight.test.tsx +++ b/packages/react/src/Spotlight/Spotlight.test.tsx @@ -18,7 +18,7 @@ describe('Spotlight', () => { const component = container.querySelector(':only-child') - expect(component).toHaveClass('amsterdam-spotlight') + expect(component).toHaveClass('ams-spotlight') }) it('renders an additional class name', () => { @@ -28,7 +28,7 @@ describe('Spotlight', () => { expect(component).toHaveClass('extra') - expect(component).toHaveClass('amsterdam-spotlight') + expect(component).toHaveClass('ams-spotlight') }) it('supports ForwardRef in React', () => { @@ -47,7 +47,7 @@ describe('Spotlight', () => { const component = container.querySelector(':only-child') - expect(component).toHaveClass(`amsterdam-spotlight--${color}`) + expect(component).toHaveClass(`ams-spotlight--${color}`) }), ) diff --git a/packages/react/src/Spotlight/Spotlight.tsx b/packages/react/src/Spotlight/Spotlight.tsx index d08e86269c..a6b0771c78 100644 --- a/packages/react/src/Spotlight/Spotlight.tsx +++ b/packages/react/src/Spotlight/Spotlight.tsx @@ -26,7 +26,7 @@ export type SpotlightProps = { export const Spotlight = forwardRef( ({ children, className, as: Tag = 'div', color = 'dark-blue', ...restProps }: SpotlightProps, ref) => ( - + {children} ), diff --git a/packages/react/src/Switch/Switch.test.tsx b/packages/react/src/Switch/Switch.test.tsx index 95b6197ebd..deabb97c71 100644 --- a/packages/react/src/Switch/Switch.test.tsx +++ b/packages/react/src/Switch/Switch.test.tsx @@ -79,14 +79,14 @@ describe('Switch', () => { const { container } = render() const component = container.querySelector(':only-child') - expect(component).toHaveClass('amsterdam-switch') + expect(component).toHaveClass('ams-switch') }) it('renders an additional class name', () => { const { container } = render() const component = container.querySelector(':only-child') - expect(component).toHaveClass('amsterdam-switch', 'extra') + expect(component).toHaveClass('ams-switch', 'extra') }) it('is able to pass a React ref', () => { diff --git a/packages/react/src/Switch/Switch.tsx b/packages/react/src/Switch/Switch.tsx index d4a2167b0a..ecfd11842f 100644 --- a/packages/react/src/Switch/Switch.tsx +++ b/packages/react/src/Switch/Switch.tsx @@ -14,17 +14,10 @@ export const Switch = forwardRef( const inputId = id || useId() return ( -
- +
+ - +
) }, diff --git a/packages/react/src/Table/Table.test.tsx b/packages/react/src/Table/Table.test.tsx index 2a108b22c6..3dbddafea6 100644 --- a/packages/react/src/Table/Table.test.tsx +++ b/packages/react/src/Table/Table.test.tsx @@ -18,7 +18,7 @@ describe('Table', () => { const component = screen.getByRole('table') - expect(component).toHaveClass('amsterdam-table__table') + expect(component).toHaveClass('ams-table__table') }) it('renders an additional class name', () => { @@ -26,7 +26,7 @@ describe('Table', () => { const component = screen.getByRole('table') - expect(component).toHaveClass('amsterdam-table__table extra') + expect(component).toHaveClass('ams-table__table extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/Table/Table.tsx b/packages/react/src/Table/Table.tsx index 9257026422..9dab9bc461 100644 --- a/packages/react/src/Table/Table.tsx +++ b/packages/react/src/Table/Table.tsx @@ -34,8 +34,8 @@ type TableComponent = { export const Table = forwardRef( ({ children, className, ...restProps }: TableProps, ref: ForwardedRef) => ( -
- +
+
{children}
diff --git a/packages/react/src/Table/TableBody.test.tsx b/packages/react/src/Table/TableBody.test.tsx index 24580191dd..24e948ccaa 100644 --- a/packages/react/src/Table/TableBody.test.tsx +++ b/packages/react/src/Table/TableBody.test.tsx @@ -27,7 +27,7 @@ describe('Table body', () => { const component = screen.getByRole('rowgroup') - expect(component).toHaveClass('amsterdam-table__body') + expect(component).toHaveClass('ams-table__body') }) it('renders an additional class name', () => { @@ -39,7 +39,7 @@ describe('Table body', () => { const component = screen.getByRole('rowgroup') - expect(component).toHaveClass('amsterdam-table__body extra') + expect(component).toHaveClass('ams-table__body extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/Table/TableBody.tsx b/packages/react/src/Table/TableBody.tsx index a377ec7d99..aab2e0fef3 100644 --- a/packages/react/src/Table/TableBody.tsx +++ b/packages/react/src/Table/TableBody.tsx @@ -11,7 +11,7 @@ export type TableBodyProps = PropsWithChildren) => ( - + {children} ), diff --git a/packages/react/src/Table/TableCaption.test.tsx b/packages/react/src/Table/TableCaption.test.tsx index 8e7d94a8ca..af6f9b0b81 100644 --- a/packages/react/src/Table/TableCaption.test.tsx +++ b/packages/react/src/Table/TableCaption.test.tsx @@ -32,7 +32,7 @@ describe('Table caption', () => { }) const caption = component?.querySelector(':only-child') - expect(caption).toHaveClass('amsterdam-table__caption') + expect(caption).toHaveClass('ams-table__caption') }) it('renders an additional class name', () => { @@ -47,7 +47,7 @@ describe('Table caption', () => { }) const caption = component?.querySelector(':only-child') - expect(caption).toHaveClass('amsterdam-table__caption extra') + expect(caption).toHaveClass('ams-table__caption extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/Table/TableCaption.tsx b/packages/react/src/Table/TableCaption.tsx index e619328fe0..61af094ae8 100644 --- a/packages/react/src/Table/TableCaption.tsx +++ b/packages/react/src/Table/TableCaption.tsx @@ -12,7 +12,7 @@ export type TableCaptionProps = PropsWithChildren) => ( - + {children} ), diff --git a/packages/react/src/Table/TableCell.test.tsx b/packages/react/src/Table/TableCell.test.tsx index 5a9ef0dbc4..e41d81edc0 100644 --- a/packages/react/src/Table/TableCell.test.tsx +++ b/packages/react/src/Table/TableCell.test.tsx @@ -37,7 +37,7 @@ describe('Table cell', () => { const component = screen.getByRole('cell') - expect(component).toHaveClass('amsterdam-table__cell') + expect(component).toHaveClass('ams-table__cell') }) it('renders an additional class name', () => { @@ -53,7 +53,7 @@ describe('Table cell', () => { const component = screen.getByRole('cell') - expect(component).toHaveClass('amsterdam-table__cell extra') + expect(component).toHaveClass('ams-table__cell extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/Table/TableCell.tsx b/packages/react/src/Table/TableCell.tsx index 58038c1cd3..6a9851077a 100644 --- a/packages/react/src/Table/TableCell.tsx +++ b/packages/react/src/Table/TableCell.tsx @@ -11,7 +11,7 @@ export type TableCellProps = PropsWithChildren) => ( - + {children} ), diff --git a/packages/react/src/Table/TableFooter.test.tsx b/packages/react/src/Table/TableFooter.test.tsx index 6b1c548451..a6a2aee640 100644 --- a/packages/react/src/Table/TableFooter.test.tsx +++ b/packages/react/src/Table/TableFooter.test.tsx @@ -27,7 +27,7 @@ describe('Table footer', () => { const component = screen.getByRole('rowgroup') - expect(component).toHaveClass('amsterdam-table__footer') + expect(component).toHaveClass('ams-table__footer') }) it('renders an additional class name', () => { @@ -39,7 +39,7 @@ describe('Table footer', () => { const component = screen.getByRole('rowgroup') - expect(component).toHaveClass('amsterdam-table__footer extra') + expect(component).toHaveClass('ams-table__footer extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/Table/TableFooter.tsx b/packages/react/src/Table/TableFooter.tsx index 3c85209f21..1dc65ee9b6 100644 --- a/packages/react/src/Table/TableFooter.tsx +++ b/packages/react/src/Table/TableFooter.tsx @@ -11,7 +11,7 @@ export type TableFooterProps = PropsWithChildren) => ( - + {children} ), diff --git a/packages/react/src/Table/TableHeader.test.tsx b/packages/react/src/Table/TableHeader.test.tsx index 932d59ae0e..c1bf348b5f 100644 --- a/packages/react/src/Table/TableHeader.test.tsx +++ b/packages/react/src/Table/TableHeader.test.tsx @@ -27,7 +27,7 @@ describe('Table header', () => { const component = screen.getByRole('rowgroup') - expect(component).toHaveClass('amsterdam-table__header') + expect(component).toHaveClass('ams-table__header') }) it('renders an additional class name', () => { @@ -39,7 +39,7 @@ describe('Table header', () => { const component = screen.getByRole('rowgroup') - expect(component).toHaveClass('amsterdam-table__header extra') + expect(component).toHaveClass('ams-table__header extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/Table/TableHeader.tsx b/packages/react/src/Table/TableHeader.tsx index 43a8f0f3d2..4fed3fbb83 100644 --- a/packages/react/src/Table/TableHeader.tsx +++ b/packages/react/src/Table/TableHeader.tsx @@ -11,7 +11,7 @@ export type TableHeaderProps = PropsWithChildren) => ( - + {children} ), diff --git a/packages/react/src/Table/TableHeaderCell.test.tsx b/packages/react/src/Table/TableHeaderCell.test.tsx index d62fa960d5..28b5f562f1 100644 --- a/packages/react/src/Table/TableHeaderCell.test.tsx +++ b/packages/react/src/Table/TableHeaderCell.test.tsx @@ -54,7 +54,7 @@ describe('Table header cell', () => { const component = screen.getByRole('columnheader') - expect(component).toHaveClass('amsterdam-table__header-cell') + expect(component).toHaveClass('ams-table__header-cell') }) it('renders an additional class name', () => { @@ -70,7 +70,7 @@ describe('Table header cell', () => { const component = screen.getByRole('columnheader') - expect(component).toHaveClass('amsterdam-table__header-cell extra') + expect(component).toHaveClass('ams-table__header-cell extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/Table/TableHeaderCell.tsx b/packages/react/src/Table/TableHeaderCell.tsx index e1c327b63a..a854103aec 100644 --- a/packages/react/src/Table/TableHeaderCell.tsx +++ b/packages/react/src/Table/TableHeaderCell.tsx @@ -11,7 +11,7 @@ export type TableHeaderCellProps = PropsWithChildren) => ( - + {children} ), diff --git a/packages/react/src/Table/TableRow.test.tsx b/packages/react/src/Table/TableRow.test.tsx index 83162a74c4..9cb730222c 100644 --- a/packages/react/src/Table/TableRow.test.tsx +++ b/packages/react/src/Table/TableRow.test.tsx @@ -32,7 +32,7 @@ describe('Table row', () => { const component = screen.getByRole('row') - expect(component).toHaveClass('amsterdam-table__row') + expect(component).toHaveClass('ams-table__row') }) it('renders an additional class name', () => { @@ -46,7 +46,7 @@ describe('Table row', () => { const component = screen.getByRole('row') - expect(component).toHaveClass('amsterdam-table__row extra') + expect(component).toHaveClass('ams-table__row extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/Table/TableRow.tsx b/packages/react/src/Table/TableRow.tsx index 3f9a403495..da7a3d2f00 100644 --- a/packages/react/src/Table/TableRow.tsx +++ b/packages/react/src/Table/TableRow.tsx @@ -11,7 +11,7 @@ export type TableRowProps = PropsWithChildren) => ( - + {children} ), diff --git a/packages/react/src/Tabs/Tabs.test.tsx b/packages/react/src/Tabs/Tabs.test.tsx index aaafbf7d1e..08859cabfd 100644 --- a/packages/react/src/Tabs/Tabs.test.tsx +++ b/packages/react/src/Tabs/Tabs.test.tsx @@ -18,7 +18,7 @@ describe('Tabs', () => { const component = screen.getByRole('tabs') - expect(component).toHaveClass('amsterdam-tabs') + expect(component).toHaveClass('ams-tabs') }) it('renders an additional class name', () => { @@ -26,7 +26,7 @@ describe('Tabs', () => { const component = screen.getByRole('tabs') - expect(component).toHaveClass('amsterdam-tabs extra') + expect(component).toHaveClass('ams-tabs extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/Tabs/Tabs.tsx b/packages/react/src/Tabs/Tabs.tsx index 38b242d900..8fcfa58420 100644 --- a/packages/react/src/Tabs/Tabs.tsx +++ b/packages/react/src/Tabs/Tabs.tsx @@ -43,13 +43,7 @@ export const Tabs = forwardRef( return ( -
+
{children}
diff --git a/packages/react/src/Tabs/TabsButton.test.tsx b/packages/react/src/Tabs/TabsButton.test.tsx index eb6faa3e11..261dd09dfe 100644 --- a/packages/react/src/Tabs/TabsButton.test.tsx +++ b/packages/react/src/Tabs/TabsButton.test.tsx @@ -17,7 +17,7 @@ describe('Tabs button', () => { const component = screen.getByRole('tab') - expect(component).toHaveClass('amsterdam-tabs__button') + expect(component).toHaveClass('ams-tabs__button') }) it('renders an additional class name', () => { @@ -25,7 +25,7 @@ describe('Tabs button', () => { const component = screen.getByRole('tab') - expect(component).toHaveClass('amsterdam-tabs__button extra') + expect(component).toHaveClass('ams-tabs__button extra') }) it('renders a label', () => { diff --git a/packages/react/src/Tabs/TabsButton.tsx b/packages/react/src/Tabs/TabsButton.tsx index 18a5ad93cc..ab165dd790 100644 --- a/packages/react/src/Tabs/TabsButton.tsx +++ b/packages/react/src/Tabs/TabsButton.tsx @@ -30,7 +30,7 @@ export const TabsButton = forwardRef( updateTab(tab) }) }} - className={clsx('amsterdam-tabs__button', className)} + className={clsx('ams-tabs__button', className)} > {children} diff --git a/packages/react/src/Tabs/TabsList.test.tsx b/packages/react/src/Tabs/TabsList.test.tsx index faaac45a2f..b3705c0a76 100644 --- a/packages/react/src/Tabs/TabsList.test.tsx +++ b/packages/react/src/Tabs/TabsList.test.tsx @@ -17,7 +17,7 @@ describe('Tabs list', () => { const component = screen.getByRole('tablist') - expect(component).toHaveClass('amsterdam-tabs__list') + expect(component).toHaveClass('ams-tabs__list') }) it('renders an additional class name', () => { @@ -25,7 +25,7 @@ describe('Tabs list', () => { const component = screen.getByRole('tablist') - expect(component).toHaveClass('amsterdam-tabs__list extra') + expect(component).toHaveClass('ams-tabs__list extra') }) it('supports ForwardRef in React', () => { @@ -33,7 +33,7 @@ describe('Tabs list', () => { const { container } = render() - const tabsList = container.querySelector('.amsterdam-tabs__list') + const tabsList = container.querySelector('.ams-tabs__list') expect(ref.current).toBe(tabsList) }) diff --git a/packages/react/src/Tabs/TabsList.tsx b/packages/react/src/Tabs/TabsList.tsx index f2b69f22ca..67da91ab17 100644 --- a/packages/react/src/Tabs/TabsList.tsx +++ b/packages/react/src/Tabs/TabsList.tsx @@ -11,7 +11,7 @@ export type TabsListProps = PropsWithChildren> export const TabsList = forwardRef( ({ children, className, ...restProps }: TabsListProps, ref: ForwardedRef) => ( -
+
{children}
), diff --git a/packages/react/src/Tabs/TabsPanel.test.tsx b/packages/react/src/Tabs/TabsPanel.test.tsx index accfffc186..bb2599ea60 100644 --- a/packages/react/src/Tabs/TabsPanel.test.tsx +++ b/packages/react/src/Tabs/TabsPanel.test.tsx @@ -17,7 +17,7 @@ describe('Tabs panel', () => { const component = screen.getByRole('tabpanel') - expect(component).toHaveClass('amsterdam-tabs__panel') + expect(component).toHaveClass('ams-tabs__panel') }) it('renders an additional class name', () => { @@ -25,7 +25,7 @@ describe('Tabs panel', () => { const component = screen.getByRole('tabpanel') - expect(component).toHaveClass('amsterdam-tabs__panel extra') + expect(component).toHaveClass('ams-tabs__panel extra') }) it('renders the correct id based on the tabs prop', () => { @@ -49,7 +49,7 @@ describe('Tabs panel', () => { const { container } = render() - const tabsPanel = container.querySelector('.amsterdam-tabs__panel') + const tabsPanel = container.querySelector('.ams-tabs__panel') expect(ref.current).toBe(tabsPanel) }) diff --git a/packages/react/src/Tabs/TabsPanel.tsx b/packages/react/src/Tabs/TabsPanel.tsx index 08fed826a7..44f73440ce 100644 --- a/packages/react/src/Tabs/TabsPanel.tsx +++ b/packages/react/src/Tabs/TabsPanel.tsx @@ -28,7 +28,7 @@ export const TabsPanel = forwardRef( id={`${tabsId}-panel-${tab}`} tabIndex={0} ref={ref} - className={clsx('amsterdam-tabs__panel', className)} + className={clsx('ams-tabs__panel', className)} > {children}
diff --git a/packages/react/src/TextArea/TextArea.test.tsx b/packages/react/src/TextArea/TextArea.test.tsx index e997d0f9d9..c976fff8c8 100644 --- a/packages/react/src/TextArea/TextArea.test.tsx +++ b/packages/react/src/TextArea/TextArea.test.tsx @@ -19,7 +19,7 @@ describe('Text area', () => { const component = screen.getByRole('textbox') - expect(component).toHaveClass('amsterdam-text-area') + expect(component).toHaveClass('ams-text-area') }) it('renders an additional class name', () => { @@ -27,7 +27,7 @@ describe('Text area', () => { const component = screen.getByRole('textbox') - expect(component).toHaveClass('amsterdam-text-area extra') + expect(component).toHaveClass('ams-text-area extra') }) it('renders a textarea with horizontal resize', () => { @@ -35,7 +35,7 @@ describe('Text area', () => { const component = screen.getByRole('textbox') - expect(component).toHaveClass('amsterdam-text-area amsterdam-text-area--resize-horizontal') + expect(component).toHaveClass('ams-text-area ams-text-area--resize-horizontal') }) it('renders a textarea with vertical resize', () => { @@ -43,7 +43,7 @@ describe('Text area', () => { const component = screen.getByRole('textbox') - expect(component).toHaveClass('amsterdam-text-area amsterdam-text-area--resize-vertical') + expect(component).toHaveClass('ams-text-area ams-text-area--resize-vertical') }) it('renders a textarea with no resize', () => { @@ -51,7 +51,7 @@ describe('Text area', () => { const component = screen.getByRole('textbox') - expect(component).toHaveClass('amsterdam-text-area amsterdam-text-area--resize-none') + expect(component).toHaveClass('ams-text-area ams-text-area--resize-none') }) it('renders a textarea with cols class when cols prop is provided', () => { @@ -59,7 +59,7 @@ describe('Text area', () => { const component = screen.getByRole('textbox') - expect(component).toHaveClass('amsterdam-text-area amsterdam-text-area--cols') + expect(component).toHaveClass('ams-text-area ams-text-area--cols') }) it('can be controlled', async () => { diff --git a/packages/react/src/TextArea/TextArea.tsx b/packages/react/src/TextArea/TextArea.tsx index 4ab11a0c33..a14ebda50e 100644 --- a/packages/react/src/TextArea/TextArea.tsx +++ b/packages/react/src/TextArea/TextArea.tsx @@ -17,9 +17,9 @@ export const TextArea = forwardRef( {...restProps} ref={ref} className={clsx( - 'amsterdam-text-area', - resize && `amsterdam-text-area--resize-${resize}`, - restProps.cols && 'amsterdam-text-area--cols', + 'ams-text-area', + resize && `ams-text-area--resize-${resize}`, + restProps.cols && 'ams-text-area--cols', className, )} /> diff --git a/packages/react/src/TextInput/TextInput.test.tsx b/packages/react/src/TextInput/TextInput.test.tsx index dd84a16a51..77a282b14e 100644 --- a/packages/react/src/TextInput/TextInput.test.tsx +++ b/packages/react/src/TextInput/TextInput.test.tsx @@ -19,7 +19,7 @@ describe('Text input', () => { const component = screen.getByRole('textbox') - expect(component).toHaveClass('amsterdam-text-input') + expect(component).toHaveClass('ams-text-input') }) it('renders an additional class name', () => { @@ -29,7 +29,7 @@ describe('Text input', () => { expect(component).toHaveClass('extra') - expect(component).toHaveClass('amsterdam-text-input') + expect(component).toHaveClass('ams-text-input') }) it('should be working in a controlled state', async () => { diff --git a/packages/react/src/TextInput/TextInput.tsx b/packages/react/src/TextInput/TextInput.tsx index b57cf9deed..56990d874a 100644 --- a/packages/react/src/TextInput/TextInput.tsx +++ b/packages/react/src/TextInput/TextInput.tsx @@ -11,7 +11,7 @@ export type TextInputProps = InputHTMLAttributes export const TextInput = forwardRef( ({ className, ...restProps }: TextInputProps, ref: ForwardedRef) => ( - + ), ) diff --git a/packages/react/src/TopTaskLink/TopTaskLink.test.tsx b/packages/react/src/TopTaskLink/TopTaskLink.test.tsx index 88d2ff9d1f..baaa5b9995 100644 --- a/packages/react/src/TopTaskLink/TopTaskLink.test.tsx +++ b/packages/react/src/TopTaskLink/TopTaskLink.test.tsx @@ -24,9 +24,9 @@ describe('Top task link', () => { const label = screen.getByText('Label') const description = screen.getByText('Description') - expect(link).toHaveClass('amsterdam-top-task-link') - expect(label).toHaveClass('amsterdam-top-task-link__label') - expect(description).toHaveClass('amsterdam-top-task-link__description') + expect(link).toHaveClass('ams-top-task-link') + expect(label).toHaveClass('ams-top-task-link__label') + expect(description).toHaveClass('ams-top-task-link__description') }) it('renders an additional class name', () => { @@ -37,7 +37,7 @@ describe('Top task link', () => { }) expect(link).toHaveClass('extra') - expect(link).toHaveClass('amsterdam-top-task-link') + expect(link).toHaveClass('ams-top-task-link') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/TopTaskLink/TopTaskLink.tsx b/packages/react/src/TopTaskLink/TopTaskLink.tsx index 6364ed7e54..2d2e481263 100644 --- a/packages/react/src/TopTaskLink/TopTaskLink.tsx +++ b/packages/react/src/TopTaskLink/TopTaskLink.tsx @@ -15,11 +15,11 @@ export type TopTaskLinkProps = { export const TopTaskLink = forwardRef( ({ className, label, description, ...restProps }: TopTaskLinkProps, ref: ForwardedRef) => ( - - {label} + + {label} {/* This comma makes screen readers add a slight pause between the label and the description. */} , - {description} + {description} ), ) diff --git a/packages/react/src/UnorderedList/UnorderedList.test.tsx b/packages/react/src/UnorderedList/UnorderedList.test.tsx index 04b763cd50..f0d847c11c 100644 --- a/packages/react/src/UnorderedList/UnorderedList.test.tsx +++ b/packages/react/src/UnorderedList/UnorderedList.test.tsx @@ -16,7 +16,7 @@ describe('Unordered list', () => { const component = screen.getByRole('list') - expect(component).toHaveClass('amsterdam-unordered-list') + expect(component).toHaveClass('ams-unordered-list') }) it('renders a no markers class', () => { @@ -24,7 +24,7 @@ describe('Unordered list', () => { const component = screen.getByRole('list') - expect(component).toHaveClass('amsterdam-unordered-list--no-markers') + expect(component).toHaveClass('ams-unordered-list--no-markers') }) it('renders an inverse color class', () => { @@ -32,7 +32,7 @@ describe('Unordered list', () => { const component = screen.getByRole('list') - expect(component).toHaveClass('amsterdam-unordered-list--inverse-color') + expect(component).toHaveClass('ams-unordered-list--inverse-color') }) it('renders an additional class name', () => { @@ -40,7 +40,7 @@ describe('Unordered list', () => { const component = screen.getByRole('list') - expect(component).toHaveClass('amsterdam-unordered-list extra') + expect(component).toHaveClass('ams-unordered-list extra') }) it('renders its subcomponent', () => { @@ -55,7 +55,7 @@ describe('Unordered list', () => { ) const list = screen.getByRole('list') - const items = container.querySelectorAll('.amsterdam-unordered-list__item') + const items = container.querySelectorAll('.ams-unordered-list__item') expect(list).toBeInTheDocument() expect(items.length).toBe(3) diff --git a/packages/react/src/UnorderedList/UnorderedList.tsx b/packages/react/src/UnorderedList/UnorderedList.tsx index 2fe60182b3..6d9370edc1 100644 --- a/packages/react/src/UnorderedList/UnorderedList.tsx +++ b/packages/react/src/UnorderedList/UnorderedList.tsx @@ -26,9 +26,9 @@ export const UnorderedList = forwardRef(
    { const component = screen.getByRole('listitem') - expect(component).toHaveClass('amsterdam-unordered-list__item') + expect(component).toHaveClass('ams-unordered-list__item') }) it('renders an additional class name', () => { @@ -25,7 +25,7 @@ describe('Ordered list item', () => { const component = screen.getByRole('listitem') - expect(component).toHaveClass('amsterdam-unordered-list__item extra') + expect(component).toHaveClass('ams-unordered-list__item extra') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/UnorderedList/UnorderedListItem.tsx b/packages/react/src/UnorderedList/UnorderedListItem.tsx index 5c0f0c855d..640d996670 100644 --- a/packages/react/src/UnorderedList/UnorderedListItem.tsx +++ b/packages/react/src/UnorderedList/UnorderedListItem.tsx @@ -11,7 +11,7 @@ export type UnorderedListItemProps = PropsWithChildren) => ( -
  • +
  • {children}
  • ), diff --git a/packages/react/src/VisuallyHidden/VisuallyHidden.test.tsx b/packages/react/src/VisuallyHidden/VisuallyHidden.test.tsx index 0f33b3a0ab..c07224a5bf 100644 --- a/packages/react/src/VisuallyHidden/VisuallyHidden.test.tsx +++ b/packages/react/src/VisuallyHidden/VisuallyHidden.test.tsx @@ -18,7 +18,7 @@ describe('Visually hidden', () => { const component = container.querySelector(':only-child') - expect(component).toHaveClass('amsterdam-visually-hidden') + expect(component).toHaveClass('ams-visually-hidden') }) it('renders an additional class name', () => { @@ -28,7 +28,7 @@ describe('Visually hidden', () => { expect(component).toHaveClass('extra') - expect(component).toHaveClass('amsterdam-visually-hidden') + expect(component).toHaveClass('ams-visually-hidden') }) it('supports ForwardRef in React', () => { diff --git a/packages/react/src/VisuallyHidden/VisuallyHidden.tsx b/packages/react/src/VisuallyHidden/VisuallyHidden.tsx index 7977066e62..0b1b5d9980 100644 --- a/packages/react/src/VisuallyHidden/VisuallyHidden.tsx +++ b/packages/react/src/VisuallyHidden/VisuallyHidden.tsx @@ -12,7 +12,7 @@ export const VisuallyHidden = forwardRef( { children, className, ...restProps }: PropsWithChildren>, ref: ForwardedRef, ) => ( - + {children} ), diff --git a/plop-templates/react.test.tsx.hbs b/plop-templates/react.test.tsx.hbs index f510c332b3..4f6190f143 100644 --- a/plop-templates/react.test.tsx.hbs +++ b/plop-templates/react.test.tsx.hbs @@ -18,7 +18,7 @@ describe('{{sentenceCase name}}', () => { const component = container.querySelector(':only-child') - expect(component).toHaveClass('amsterdam-{{kebabCase name}}') + expect(component).toHaveClass('ams-{{kebabCase name}}') }) it('renders an additional class name', () => { @@ -26,7 +26,7 @@ describe('{{sentenceCase name}}', () => { const component = container.querySelector(':only-child') - expect(component).toHaveClass('amsterdam-{{kebabCase name}} extra') + expect(component).toHaveClass('ams-{{kebabCase name}} extra') }) it('supports ForwardRef in React', () => { diff --git a/plop-templates/react.tsx.hbs b/plop-templates/react.tsx.hbs index bbfe54345a..bccf5deda1 100644 --- a/plop-templates/react.tsx.hbs +++ b/plop-templates/react.tsx.hbs @@ -11,7 +11,7 @@ export type {{pascalCase name}}Props = PropsWithChildren) => ( - + {children} ), diff --git a/plop-templates/style.scss.hbs b/plop-templates/style.scss.hbs index c37c2b8c12..5cff467bba 100644 --- a/plop-templates/style.scss.hbs +++ b/plop-templates/style.scss.hbs @@ -3,6 +3,6 @@ * Copyright Gemeente Amsterdam */ -.amsterdam-{{kebabCase name}} { +.ams-{{kebabCase name}} { /* Add styles here */ } diff --git a/plop-templates/tokens.json.hbs b/plop-templates/tokens.json.hbs index 7163e32606..478288abcb 100644 --- a/plop-templates/tokens.json.hbs +++ b/plop-templates/tokens.json.hbs @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "{{kebabCase name}}": {} } } diff --git a/plopfile.mjs b/plopfile.mjs index 0b26b67abb..abafbd5e9f 100644 --- a/plopfile.mjs +++ b/plopfile.mjs @@ -12,7 +12,7 @@ export default function (plop) { actions: [ { type: 'add', - path: 'proprietary/tokens/src/components/amsterdam/{{kebabCase name}}.tokens.json', + path: 'proprietary/tokens/src/components/ams/{{kebabCase name}}.tokens.json', templateFile: 'plop-templates/tokens.json.hbs', }, { diff --git a/proprietary/assets/logo/amsterdam.svg b/proprietary/assets/logo/amsterdam.svg index 6502f58399..14cf892247 100644 --- a/proprietary/assets/logo/amsterdam.svg +++ b/proprietary/assets/logo/amsterdam.svg @@ -1,8 +1,8 @@ - + - + diff --git a/proprietary/assets/logo/ggd-amsterdam.svg b/proprietary/assets/logo/ggd-amsterdam.svg index b9051bd1a3..1efd2493f7 100644 --- a/proprietary/assets/logo/ggd-amsterdam.svg +++ b/proprietary/assets/logo/ggd-amsterdam.svg @@ -1,11 +1,11 @@ - + - + - + diff --git a/proprietary/assets/logo/museum_weesp.svg b/proprietary/assets/logo/museum_weesp.svg index f78a60e26c..ee3b80288c 100644 --- a/proprietary/assets/logo/museum_weesp.svg +++ b/proprietary/assets/logo/museum_weesp.svg @@ -1,7 +1,7 @@ - - - - - + + + + + diff --git a/proprietary/assets/logo/stadsarchief.svg b/proprietary/assets/logo/stadsarchief.svg index 2f1e4c1bd3..b2d9802462 100644 --- a/proprietary/assets/logo/stadsarchief.svg +++ b/proprietary/assets/logo/stadsarchief.svg @@ -1,11 +1,11 @@ - + - + - + diff --git a/proprietary/assets/logo/stadsbank-van-lening.svg b/proprietary/assets/logo/stadsbank-van-lening.svg index 57b8404e9d..f3c276ae09 100644 --- a/proprietary/assets/logo/stadsbank-van-lening.svg +++ b/proprietary/assets/logo/stadsbank-van-lening.svg @@ -1,11 +1,11 @@ - + - + - + diff --git a/proprietary/assets/logo/vga-verzekeringen.svg b/proprietary/assets/logo/vga-verzekeringen.svg index b08e08cc68..7fa364791b 100644 --- a/proprietary/assets/logo/vga-verzekeringen.svg +++ b/proprietary/assets/logo/vga-verzekeringen.svg @@ -1,11 +1,11 @@ - + - + - + diff --git a/proprietary/tokens/build.js b/proprietary/tokens/build.js index 5ffe1d2997..121a6eef7b 100644 --- a/proprietary/tokens/build.js +++ b/proprietary/tokens/build.js @@ -28,7 +28,7 @@ function generateSharedConfig(mode) { destination: `${name}.theme.css`, format: 'css/variables', options: { - selector: `.amsterdam-theme${name === 'index' ? '' : `--${name}`}`, + selector: `.ams-theme${name === 'index' ? '' : `--${name}`}`, outputReferences: true, }, }, diff --git a/proprietary/tokens/src/brand/amsterdam/color.tokens.json b/proprietary/tokens/src/brand/ams/color.tokens.json similarity index 97% rename from proprietary/tokens/src/brand/amsterdam/color.tokens.json rename to proprietary/tokens/src/brand/ams/color.tokens.json index c25e616fe3..9648f33983 100644 --- a/proprietary/tokens/src/brand/amsterdam/color.tokens.json +++ b/proprietary/tokens/src/brand/ams/color.tokens.json @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "color": { "primary-black": { "value": "#000000" }, "primary-white": { "value": "#FFFFFF" }, diff --git a/proprietary/tokens/src/brand/amsterdam/proportion.tokens.json b/proprietary/tokens/src/brand/ams/proportion.tokens.json similarity index 93% rename from proprietary/tokens/src/brand/amsterdam/proportion.tokens.json rename to proprietary/tokens/src/brand/ams/proportion.tokens.json index b2dedf9ee8..52b34d95dc 100644 --- a/proprietary/tokens/src/brand/amsterdam/proportion.tokens.json +++ b/proprietary/tokens/src/brand/ams/proportion.tokens.json @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "proportion": { "x-tall": { "value": "9 / 16" }, "tall": { "value": "4 / 5" }, diff --git a/proprietary/tokens/src/brand/amsterdam/space.compact.tokens.json b/proprietary/tokens/src/brand/ams/space.compact.tokens.json similarity index 97% rename from proprietary/tokens/src/brand/amsterdam/space.compact.tokens.json rename to proprietary/tokens/src/brand/ams/space.compact.tokens.json index 753277f079..8e1cbded54 100644 --- a/proprietary/tokens/src/brand/amsterdam/space.compact.tokens.json +++ b/proprietary/tokens/src/brand/ams/space.compact.tokens.json @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "space": { "grid": { "xs": { "value": "clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem)" }, diff --git a/proprietary/tokens/src/brand/amsterdam/space.tokens.json b/proprietary/tokens/src/brand/ams/space.tokens.json similarity index 98% rename from proprietary/tokens/src/brand/amsterdam/space.tokens.json rename to proprietary/tokens/src/brand/ams/space.tokens.json index c7ec3917b8..3912abf291 100644 --- a/proprietary/tokens/src/brand/amsterdam/space.tokens.json +++ b/proprietary/tokens/src/brand/ams/space.tokens.json @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "space": { "grid": { "xs": { "value": "clamp(0.25rem, calc(0.78125vw + 0.09375rem), 0.875rem)" }, diff --git a/proprietary/tokens/src/brand/amsterdam/typography.compact.tokens.json b/proprietary/tokens/src/brand/ams/text.compact.tokens.json similarity index 93% rename from proprietary/tokens/src/brand/amsterdam/typography.compact.tokens.json rename to proprietary/tokens/src/brand/ams/text.compact.tokens.json index e722ff598f..894c645542 100644 --- a/proprietary/tokens/src/brand/amsterdam/typography.compact.tokens.json +++ b/proprietary/tokens/src/brand/ams/text.compact.tokens.json @@ -1,7 +1,7 @@ { - "amsterdam": { - "typography": { - "text-level": { + "ams": { + "text": { + "level": { "0": { "font-size": { "value": "clamp(1.891rem, calc(1.927vw + 1.506rem), 3.433rem)" } }, diff --git a/proprietary/tokens/src/brand/amsterdam/typography.tokens.json b/proprietary/tokens/src/brand/ams/text.tokens.json similarity index 95% rename from proprietary/tokens/src/brand/amsterdam/typography.tokens.json rename to proprietary/tokens/src/brand/ams/text.tokens.json index 3394e80de1..7a1149331c 100644 --- a/proprietary/tokens/src/brand/amsterdam/typography.tokens.json +++ b/proprietary/tokens/src/brand/ams/text.tokens.json @@ -1,12 +1,12 @@ { - "amsterdam": { - "typography": { + "ams": { + "text": { "font-family": { "value": "'Amsterdam Sans', Arial, sans-serif" }, "font-weight": { "normal": { "value": 400 }, "bold": { "value": 800 } }, - "text-level": { + "level": { "0": { "font-size": { "value": "clamp(2.432rem, calc(2.683vw + 1.895rem), 4.578rem)" }, "line-height": { "value": "1.15" } diff --git a/proprietary/tokens/src/common/amsterdam/action.tokens.json b/proprietary/tokens/src/common/ams/action.tokens.json similarity index 95% rename from proprietary/tokens/src/common/amsterdam/action.tokens.json rename to proprietary/tokens/src/common/ams/action.tokens.json index d726b9b7f6..3b6e1cdf54 100644 --- a/proprietary/tokens/src/common/amsterdam/action.tokens.json +++ b/proprietary/tokens/src/common/ams/action.tokens.json @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "action": { "activate": { "cursor": { "value": "pointer" } }, "busy": { "cursor": { "value": "wait" } }, diff --git a/proprietary/tokens/src/common/amsterdam/border.tokens.json b/proprietary/tokens/src/common/ams/border.tokens.json similarity index 88% rename from proprietary/tokens/src/common/amsterdam/border.tokens.json rename to proprietary/tokens/src/common/ams/border.tokens.json index fa6893047c..3c9f217831 100644 --- a/proprietary/tokens/src/common/amsterdam/border.tokens.json +++ b/proprietary/tokens/src/common/ams/border.tokens.json @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "border-width": { "sm": { "value": "1px" }, "md": { "value": "2px" }, diff --git a/proprietary/tokens/src/common/amsterdam/focus.tokens.json b/proprietary/tokens/src/common/ams/focus.tokens.json similarity index 80% rename from proprietary/tokens/src/common/amsterdam/focus.tokens.json rename to proprietary/tokens/src/common/ams/focus.tokens.json index ceb1259573..a1570eb814 100644 --- a/proprietary/tokens/src/common/amsterdam/focus.tokens.json +++ b/proprietary/tokens/src/common/ams/focus.tokens.json @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "focus": { "outline-offset": { "value": "2px" } } diff --git a/proprietary/tokens/src/common/amsterdam/hyphenation.tokens.json b/proprietary/tokens/src/common/ams/hyphenation.tokens.json similarity index 91% rename from proprietary/tokens/src/common/amsterdam/hyphenation.tokens.json rename to proprietary/tokens/src/common/ams/hyphenation.tokens.json index 9007b3bafb..927d4b8a65 100644 --- a/proprietary/tokens/src/common/amsterdam/hyphenation.tokens.json +++ b/proprietary/tokens/src/common/ams/hyphenation.tokens.json @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "hyphenation": { "hyphenate-limit-chars": { "value": "12 8 4" }, "hyphens": { "value": "auto" }, diff --git a/proprietary/tokens/src/common/amsterdam/link-appearance.tokens.json b/proprietary/tokens/src/common/ams/link-appearance.tokens.json similarity index 71% rename from proprietary/tokens/src/common/amsterdam/link-appearance.tokens.json rename to proprietary/tokens/src/common/ams/link-appearance.tokens.json index bfa9049bf7..fde698cf2b 100644 --- a/proprietary/tokens/src/common/amsterdam/link-appearance.tokens.json +++ b/proprietary/tokens/src/common/ams/link-appearance.tokens.json @@ -1,17 +1,17 @@ { - "amsterdam": { + "ams": { "link-appearance": { - "color": { "value": "{amsterdam.color.primary-blue}" }, + "color": { "value": "{ams.color.primary-blue}" }, "text-decoration-thickness": { "value": "0.125rem" }, "text-underline-offset": { "value": "0.375rem" }, "hover": { - "color": { "value": "{amsterdam.color.dark-blue}" } + "color": { "value": "{ams.color.dark-blue}" } }, "on-background-dark": { - "color": { "value": "{amsterdam.color.primary-white}" } + "color": { "value": "{ams.color.primary-white}" } }, "on-background-light": { - "color": { "value": "{amsterdam.color.primary-black}" } + "color": { "value": "{ams.color.primary-black}" } }, "regular": { "text-decoration-line": { "value": "underline" }, diff --git a/proprietary/tokens/src/components/ams/accordion.tokens.json b/proprietary/tokens/src/components/ams/accordion.tokens.json new file mode 100644 index 0000000000..ae1c1cc586 --- /dev/null +++ b/proprietary/tokens/src/components/ams/accordion.tokens.json @@ -0,0 +1,25 @@ +{ + "ams": { + "accordion": { + "button": { + "color": { "value": "{ams.color.primary-blue}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.bold}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, + "padding-block": { "value": "{ams.space.inside.sm}" }, + "padding-inline": { "value": "{ams.space.inside.md}" }, + "focus": { + "outline-offset": { "value": "{ams.focus.outline-offset}" } + }, + "hover": { + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.neutral-grey3}" } + } + }, + "panel": { + "padding-block": { "value": "{ams.space.inside.md}" }, + "padding-inline": { "value": "{ams.space.inside.md}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/alert.tokens.json b/proprietary/tokens/src/components/ams/alert.tokens.json new file mode 100644 index 0000000000..12522fafa8 --- /dev/null +++ b/proprietary/tokens/src/components/ams/alert.tokens.json @@ -0,0 +1,29 @@ +{ + "ams": { + "alert": { + "border-width": { "value": "4px" }, + "border-style": { "value": "solid" }, + "gap": { "value": "1rem" }, + "padding-block": { "value": "{ams.space.inside.md}" }, + "padding-inline": { "value": "{ams.space.inside.lg}" }, + "error": { + "border-color": { "value": "{ams.color.primary-red}" } + }, + "info": { + "border-color": { "value": "{ams.color.primary-blue}" } + }, + "success": { + "border-color": { "value": "{ams.color.dark-green}" } + }, + "warning": { + "border-color": { "value": "{ams.color.orange}" } + }, + "close": { + "fill": { "value": "{ams.color.primary-black}" }, + "hover": { + "fill": { "value": "{ams.color.primary-blue}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/aspect-ratio.tokens.json b/proprietary/tokens/src/components/ams/aspect-ratio.tokens.json new file mode 100644 index 0000000000..57f889c840 --- /dev/null +++ b/proprietary/tokens/src/components/ams/aspect-ratio.tokens.json @@ -0,0 +1,12 @@ +{ + "ams": { + "aspect-ratio": { + "x-tall": { "value": "{ams.proportion.x-tall}" }, + "tall": { "value": "{ams.proportion.tall}" }, + "square": { "value": "{ams.proportion.square}" }, + "wide": { "value": "{ams.proportion.wide}" }, + "x-wide": { "value": "{ams.proportion.x-wide}" }, + "2x-wide": { "value": "{ams.proportion.2x-wide}" } + } + } +} diff --git a/proprietary/tokens/src/components/ams/badge.tokens.json b/proprietary/tokens/src/components/ams/badge.tokens.json new file mode 100644 index 0000000000..c3a0570ff7 --- /dev/null +++ b/proprietary/tokens/src/components/ams/badge.tokens.json @@ -0,0 +1,43 @@ +{ + "ams": { + "badge": { + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.bold}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, + "padding-inline": { "value": "{ams.space.inside.xs}" }, + "blue": { + "background-color": { "value": "{ams.color.blue}" }, + "color": { "value": "{ams.color.primary-black}" } + }, + "dark-blue": { + "background-color": { "value": "{ams.color.primary-blue}" }, + "color": { "value": "{ams.color.primary-white}" } + }, + "dark-green": { + "background-color": { "value": "{ams.color.dark-green}" }, + "color": { "value": "{ams.color.primary-white}" } + }, + "green": { + "background-color": { "value": "{ams.color.green}" }, + "color": { "value": "{ams.color.primary-black}" } + }, + "magenta": { + "background-color": { "value": "{ams.color.magenta}" }, + "color": { "value": "{ams.color.primary-white}" } + }, + "orange": { + "background-color": { "value": "{ams.color.orange}" }, + "color": { "value": "{ams.color.primary-black}" } + }, + "purple": { + "background-color": { "value": "{ams.color.purple}" }, + "color": { "value": "{ams.color.primary-white}" } + }, + "yellow": { + "background-color": { "value": "{ams.color.yellow}" }, + "color": { "value": "{ams.color.primary-black}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/blockquote.tokens.json b/proprietary/tokens/src/components/ams/blockquote.tokens.json new file mode 100644 index 0000000000..98ad04803e --- /dev/null +++ b/proprietary/tokens/src/components/ams/blockquote.tokens.json @@ -0,0 +1,12 @@ +{ + "ams": { + "blockquote": { + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.3.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.bold}" }, + "line-height": { "value": "{ams.text.level.3.line-height}" }, + "inverse-color": { "value": "{ams.color.primary-white}" } + } + } +} diff --git a/proprietary/tokens/src/components/ams/breadcrumb.tokens.json b/proprietary/tokens/src/components/ams/breadcrumb.tokens.json new file mode 100644 index 0000000000..5962d660f2 --- /dev/null +++ b/proprietary/tokens/src/components/ams/breadcrumb.tokens.json @@ -0,0 +1,26 @@ +{ + "ams": { + "breadcrumb": { + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" }, + "separator": { + "background-image": { + "value": "url(\"data:image/svg+xml;utf8,\")" + } + }, + "item-link": { + "color": { "value": "{ams.link-appearance.color}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" }, + "text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" }, + "text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" }, + "hover": { + "color": { "value": "{ams.color.dark-blue}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.hover.text-decoration-line}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/button.tokens.json b/proprietary/tokens/src/components/ams/button.tokens.json new file mode 100644 index 0000000000..d7b6c227bb --- /dev/null +++ b/proprietary/tokens/src/components/ams/button.tokens.json @@ -0,0 +1,59 @@ +{ + "ams": { + "button": { + "cursor": { "value": "{ams.action.activate.cursor}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, + "gap": { "value": "1rem" }, + "padding-block": { "value": "{ams.space.inside.xs}" }, + "padding-inline": { "value": "{ams.space.inside.md}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "disabled": { + "cursor": { "value": "{ams.action.disabled.cursor}" } + }, + "primary": { + "background-color": { "value": "{ams.color.primary-blue}" }, + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.primary-blue}" }, + "color": { "value": "{ams.color.primary-white}" }, + "disabled": { + "background-color": { "value": "{ams.color.neutral-grey2}" }, + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.neutral-grey2}" } + }, + "hover": { + "background-color": { "value": "{ams.color.dark-blue}" }, + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.dark-blue}" } + } + }, + "secondary": { + "background-color": { "value": "{ams.color.primary-white}" }, + "color": { "value": "{ams.color.primary-blue}" }, + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.primary-blue}" }, + "hover": { + "box-shadow": { "value": "inset 0 0 0 3px {ams.color.dark-blue}" }, + "color": { "value": "{ams.color.dark-blue}" } + }, + "disabled": { + "background-color": { "value": "{ams.color.primary-white}" }, + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.neutral-grey2}" }, + "color": { "value": "{ams.color.neutral-grey2}" } + }, + "focus": { + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.primary-blue}" } + } + }, + "tertiary": { + "background-color": { "value": "transparent" }, + "color": { "value": "{ams.color.primary-blue}" }, + "hover": { + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.dark-blue}" }, + "color": { "value": "{ams.color.dark-blue}" } + }, + "disabled": { + "background-color": { "value": "transparent" }, + "color": { "value": "{ams.color.neutral-grey2}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/card.tokens.json b/proprietary/tokens/src/components/ams/card.tokens.json new file mode 100644 index 0000000000..1e5c2adc13 --- /dev/null +++ b/proprietary/tokens/src/components/ams/card.tokens.json @@ -0,0 +1,17 @@ +{ + "ams": { + "card": { + "link": { + "color": { "value": "{ams.link-appearance.color}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" }, + "text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" }, + "text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" }, + "hover": { + "color": { "value": "{ams.link-appearance.hover.color}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.hover.text-decoration-line}" } + } + }, + "outline-offset": { "value": "{ams.focus.outline-offset}" } + } + } +} diff --git a/proprietary/tokens/src/components/ams/checkbox.tokens.json b/proprietary/tokens/src/components/ams/checkbox.tokens.json new file mode 100644 index 0000000000..5558eeece7 --- /dev/null +++ b/proprietary/tokens/src/components/ams/checkbox.tokens.json @@ -0,0 +1,75 @@ +{ + "ams": { + "checkbox": { + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "checkmark": { + "border-color": { "value": "{ams.color.primary-blue}" }, + "checked": { + "background-color": { "value": "{ams.color.primary-blue}" }, + "background-image": { + "value": "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M12.216 27.016 0 14.168l2.91-2.77 9.346 9.837L29.129 4 32 6.8z'/%3E%3C/svg%3E\")" + }, + "hover": { + "background-color": { "value": "{ams.color.dark-blue}" } + } + }, + "disabled": { + "border-color": { "value": "{ams.color.neutral-grey3}" }, + "checked": { + "background-color": { "value": "{ams.color.neutral-grey3}" }, + "hover": { + "background-color": { "value": "{ams.color.neutral-grey3}" } + } + }, + "indeterminate": { + "background-color": { "value": "{ams.color.neutral-grey3}" }, + "hover": { + "background-color": { "value": "{ams.color.neutral-grey3}" } + } + } + }, + "hover": { + "border-color": { "value": "{ams.color.dark-blue}" } + }, + "invalid": { + "border-color": { "value": "{ams.color.primary-red}" }, + "checked": { + "background-color": { "value": "{ams.color.primary-red}" }, + "hover": { + "background-color": { "value": "{ams.color.primary-red}" } + } + }, + "hover": { + "border-color": { "value": "{ams.color.primary-red}" } + }, + "indeterminate": { + "background-color": { "value": "{ams.color.primary-red}" }, + "hover": { + "background-color": { "value": "{ams.color.primary-red}" } + } + } + }, + "indeterminate": { + "background-color": { "value": "{ams.color.primary-blue}" }, + "background-image": { + "value": "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='white'%3E%3Cpath fill-rule='evenodd' d='M0 13.714h32v4H0z'/%3E%3C/svg%3E\")" + }, + "hover": { + "background-color": { "value": "{ams.color.dark-blue}" } + } + } + }, + "disabled": { + "color": { "value": "{ams.color.neutral-grey3}" } + }, + "hover": { + "color": { "value": "{ams.color.dark-blue}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/column.tokens.json b/proprietary/tokens/src/components/ams/column.tokens.json new file mode 100644 index 0000000000..3ca4e1c389 --- /dev/null +++ b/proprietary/tokens/src/components/ams/column.tokens.json @@ -0,0 +1,13 @@ +{ + "ams": { + "column": { + "gap": { + "xs": { "value": "{ams.space.grid.xs}" }, + "sm": { "value": "{ams.space.grid.sm}" }, + "md": { "value": "{ams.space.grid.md}" }, + "lg": { "value": "{ams.space.grid.lg}" }, + "xl": { "value": "{ams.space.grid.xl}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/amsterdam/dialog.tokens.json b/proprietary/tokens/src/components/ams/dialog.tokens.json similarity index 55% rename from proprietary/tokens/src/components/amsterdam/dialog.tokens.json rename to proprietary/tokens/src/components/ams/dialog.tokens.json index 5a3c1a0b5a..f03b2c1f94 100644 --- a/proprietary/tokens/src/components/amsterdam/dialog.tokens.json +++ b/proprietary/tokens/src/components/ams/dialog.tokens.json @@ -1,15 +1,15 @@ { - "amsterdam": { + "ams": { "dialog": { - "background-color": { "value": "{amsterdam.color.primary-white}" }, + "background-color": { "value": "{ams.color.primary-white}" }, "border": { "value": "0" }, "max-inline-size": { "value": "min(87.69vw, 45rem)" }, "title": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" } + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.bold}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" } }, "form": { "gap": { "value": "1.5rem" }, diff --git a/proprietary/tokens/src/components/ams/fieldset.tokens.json b/proprietary/tokens/src/components/ams/fieldset.tokens.json new file mode 100644 index 0000000000..33c360931b --- /dev/null +++ b/proprietary/tokens/src/components/ams/fieldset.tokens.json @@ -0,0 +1,13 @@ +{ + "ams": { + "fieldset": { + "legend": { + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.4.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.bold}" }, + "line-height": { "value": "{ams.text.level.4.line-height}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/form-label.tokens.json b/proprietary/tokens/src/components/ams/form-label.tokens.json new file mode 100644 index 0000000000..8e44cac491 --- /dev/null +++ b/proprietary/tokens/src/components/ams/form-label.tokens.json @@ -0,0 +1,11 @@ +{ + "ams": { + "form-label": { + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.4.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.bold}" }, + "line-height": { "value": "{ams.text.level.4.line-height}" } + } + } +} diff --git a/proprietary/tokens/src/components/ams/gap.tokens.json b/proprietary/tokens/src/components/ams/gap.tokens.json new file mode 100644 index 0000000000..21cbf8055f --- /dev/null +++ b/proprietary/tokens/src/components/ams/gap.tokens.json @@ -0,0 +1,11 @@ +{ + "ams": { + "gap": { + "xs": { "value": "{ams.space.grid.xs}" }, + "sm": { "value": "{ams.space.grid.sm}" }, + "md": { "value": "{ams.space.grid.md}" }, + "lg": { "value": "{ams.space.grid.lg}" }, + "xl": { "value": "{ams.space.grid.xl}" } + } + } +} diff --git a/proprietary/tokens/src/components/ams/grid.compact.tokens.json b/proprietary/tokens/src/components/ams/grid.compact.tokens.json new file mode 100644 index 0000000000..3a4e3c222b --- /dev/null +++ b/proprietary/tokens/src/components/ams/grid.compact.tokens.json @@ -0,0 +1,7 @@ +{ + "ams": { + "grid": { + "padding-inline": { "value": "{ams.space.grid.md}" } + } + } +} diff --git a/proprietary/tokens/src/components/ams/grid.tokens.json b/proprietary/tokens/src/components/ams/grid.tokens.json new file mode 100644 index 0000000000..c22715cea7 --- /dev/null +++ b/proprietary/tokens/src/components/ams/grid.tokens.json @@ -0,0 +1,25 @@ +{ + "ams": { + "grid": { + "column-count": { "value": "4" }, + "column-gap": { "value": "{ams.space.grid.md}" }, + "padding-block": { + "sm": { "value": "{ams.space.grid.sm}" }, + "md": { "value": "{ams.space.grid.md}" }, + "lg": { "value": "{ams.space.grid.lg}" } + }, + "padding-inline": { "value": "{ams.space.grid.lg}" }, + "row-gap": { + "sm": { "value": "{ams.space.grid.sm}" }, + "md": { "value": "{ams.space.grid.md}" }, + "lg": { "value": "{ams.space.grid.lg}" } + }, + "medium": { + "column-count": { "value": "8" } + }, + "wide": { + "column-count": { "value": "12" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/header.tokens.json b/proprietary/tokens/src/components/ams/header.tokens.json new file mode 100644 index 0000000000..f344570fa3 --- /dev/null +++ b/proprietary/tokens/src/components/ams/header.tokens.json @@ -0,0 +1,14 @@ +{ + "ams": { + "header": { + "column-gap": { + "value": "{ams.space.grid.md}", + "comment": "Must have the same value as `ams.grid.column-gap`." + }, + "padding-block": { "value": "{ams.space.inside.md}" }, + "logo-link": { + "outline-offset": { "value": "{ams.focus.outline-offset}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/heading.tokens.json b/proprietary/tokens/src/components/ams/heading.tokens.json new file mode 100644 index 0000000000..274f8c401d --- /dev/null +++ b/proprietary/tokens/src/components/ams/heading.tokens.json @@ -0,0 +1,36 @@ +{ + "ams": { + "heading": { + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-weight": { "value": "{ams.text.font-weight.bold}" }, + "inverse-color": { "value": "{ams.color.primary-white}" }, + "level": { + "1": { + "font-size": { "value": "{ams.text.level.1.font-size}" }, + "line-height": { "value": "{ams.text.level.1.line-height}" } + }, + "2": { + "font-size": { "value": "{ams.text.level.2.font-size}" }, + "line-height": { "value": "{ams.text.level.2.line-height}" } + }, + "3": { + "font-size": { "value": "{ams.text.level.3.font-size}" }, + "line-height": { "value": "{ams.text.level.3.line-height}" } + }, + "4": { + "font-size": { "value": "{ams.text.level.4.font-size}" }, + "line-height": { "value": "{ams.text.level.4.line-height}" } + }, + "5": { + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" } + }, + "6": { + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/icon-button.tokens.json b/proprietary/tokens/src/components/ams/icon-button.tokens.json new file mode 100644 index 0000000000..0f689fc3c4 --- /dev/null +++ b/proprietary/tokens/src/components/ams/icon-button.tokens.json @@ -0,0 +1,37 @@ +{ + "ams": { + "icon-button": { + "color": { "value": "{ams.color.primary-blue}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "hover": { + "background-color": { "value": "rgba(0, 70, 153, 0.125)" }, + "color": { "value": "{ams.color.dark-blue}" } + }, + "disabled": { + "color": { "value": "{ams.color.neutral-grey2}" } + }, + "on-background-light": { + "color": { "value": "{ams.color.primary-black}" }, + "hover": { + "background-color": { "value": "rgba(0, 0, 0, 0.125)" }, + "color": { "value": "{ams.color.primary-black}" } + }, + "disabled": { + "color": { "value": "{ams.color.neutral-grey2}" } + } + }, + "on-background-dark": { + "background-color": { "value": "{ams.color.primary-blue}" }, + "color": { "value": "{ams.color.primary-white}" }, + "hover": { + "background-color": { "value": "{ams.color.dark-blue}" }, + "color": { "value": "{ams.color.primary-white}" } + }, + "disabled": { + "color": { "value": "{ams.color.primary-white}" }, + "background-color": { "value": "{ams.color.neutral-grey2}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/icon.tokens.json b/proprietary/tokens/src/components/ams/icon.tokens.json new file mode 100644 index 0000000000..a42b254322 --- /dev/null +++ b/proprietary/tokens/src/components/ams/icon.tokens.json @@ -0,0 +1,22 @@ +{ + "ams": { + "icon": { + "size-3": { + "font-size": { "value": "{ams.text.level.3.font-size}" }, + "line-height": { "value": "{ams.text.level.3.line-height}" } + }, + "size-4": { + "font-size": { "value": "{ams.text.level.4.font-size}" }, + "line-height": { "value": "{ams.text.level.4.line-height}" } + }, + "size-5": { + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" } + }, + "size-6": { + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/link-list.tokens.json b/proprietary/tokens/src/components/ams/link-list.tokens.json new file mode 100644 index 0000000000..c82861a815 --- /dev/null +++ b/proprietary/tokens/src/components/ams/link-list.tokens.json @@ -0,0 +1,45 @@ +{ + "ams": { + "link-list": { + "gap": { "value": "0.5em" }, + "link": { + "color": { "value": "{ams.link-appearance.color}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "gap": { "value": "0.5em" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" }, + "text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" }, + "text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" }, + "small": { + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" } + }, + "medium": { + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" } + }, + "large": { + "font-size": { "value": "{ams.text.level.4.font-size}" }, + "line-height": { "value": "{ams.text.level.4.line-height}" } + }, + "hover": { + "color": { "value": "{ams.link-appearance.hover.color}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.hover.text-decoration-line}" } + }, + "on-background-dark": { + "color": { "value": "{ams.link-appearance.on-background-dark.color}" }, + "hover": { + "color": { "value": "{ams.link-appearance.on-background-dark.color}" } + } + }, + "on-background-light": { + "color": { "value": "{ams.link-appearance.on-background-light.color}" }, + "hover": { + "color": { "value": "{ams.link-appearance.on-background-light.color}" } + } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/link.tokens.json b/proprietary/tokens/src/components/ams/link.tokens.json new file mode 100644 index 0000000000..5ec69c2dc1 --- /dev/null +++ b/proprietary/tokens/src/components/ams/link.tokens.json @@ -0,0 +1,61 @@ +{ + "ams": { + "link": { + "color": { "value": "{ams.link-appearance.color}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "hover": { + "color": { "value": "{ams.link-appearance.hover.color}" } + }, + "inline": { + "text-decoration-line": { "value": "{ams.link-appearance.regular.text-decoration-line}" }, + "text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" }, + "text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" }, + "font-family": { "value": "inherit" }, + "font-size": { "value": "inherit" }, + "line-height": { "value": "inherit" }, + "hover": { + "text-decoration-thickness": { + "value": "{ams.link-appearance.regular.hover.text-decoration-thickness}" + }, + "text-underline-offset": { "value": "{ams.link-appearance.regular.hover.text-underline-offset}" } + }, + "visited": { + "color": { "value": "{ams.color.purple}" } + } + }, + "standalone": { + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, + "text-decoration-line": { "value": "{ams.link-appearance.regular.text-decoration-line}" }, + "text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" }, + "text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" }, + "hover": { + "text-decoration-thickness": { + "value": "{ams.link-appearance.regular.hover.text-decoration-thickness}" + }, + "text-underline-offset": { "value": "{ams.link-appearance.regular.hover.text-underline-offset}" } + } + }, + "on-background-dark": { + "color": { "value": "{ams.link-appearance.on-background-dark.color}" }, + "hover": { + "color": { "value": "{ams.link-appearance.on-background-dark.color}" } + }, + "visited": { + "color": { "value": "{ams.link-appearance.on-background-dark.color}" } + } + }, + "on-background-light": { + "color": { "value": "{ams.link-appearance.on-background-light.color}" }, + "hover": { + "color": { "value": "{ams.link-appearance.on-background-light.color}" } + }, + "visited": { + "color": { "value": "{ams.link-appearance.on-background-light.color}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/logo.tokens.json b/proprietary/tokens/src/components/ams/logo.tokens.json new file mode 100644 index 0000000000..26e4ec2b77 --- /dev/null +++ b/proprietary/tokens/src/components/ams/logo.tokens.json @@ -0,0 +1,10 @@ +{ + "ams": { + "logo": { + "height": { "value": "2.5rem" }, + "emblem": { "color": { "value": "{ams.color.primary-red}" } }, + "title": { "color": { "value": "{ams.color.primary-red}" } }, + "subsite": { "color": { "value": "{ams.color.primary-black}" } } + } + } +} diff --git a/proprietary/tokens/src/components/ams/margin.tokens.json b/proprietary/tokens/src/components/ams/margin.tokens.json new file mode 100644 index 0000000000..4834a24a8d --- /dev/null +++ b/proprietary/tokens/src/components/ams/margin.tokens.json @@ -0,0 +1,11 @@ +{ + "ams": { + "margin": { + "xs": { "value": "{ams.space.grid.xs}" }, + "sm": { "value": "{ams.space.grid.sm}" }, + "md": { "value": "{ams.space.grid.md}" }, + "lg": { "value": "{ams.space.grid.lg}" }, + "xl": { "value": "{ams.space.grid.xl}" } + } + } +} diff --git a/proprietary/tokens/src/components/ams/mark.tokens.json b/proprietary/tokens/src/components/ams/mark.tokens.json new file mode 100644 index 0000000000..b8b989c57c --- /dev/null +++ b/proprietary/tokens/src/components/ams/mark.tokens.json @@ -0,0 +1,7 @@ +{ + "ams": { + "mark": { + "background-color": { "value": "{ams.color.yellow}" } + } + } +} diff --git a/proprietary/tokens/src/components/ams/mega-menu.tokens.json b/proprietary/tokens/src/components/ams/mega-menu.tokens.json new file mode 100644 index 0000000000..846a666daa --- /dev/null +++ b/proprietary/tokens/src/components/ams/mega-menu.tokens.json @@ -0,0 +1,18 @@ +{ + "ams": { + "mega-menu": { + "list-category": { + "column-gap": { + "value": "{ams.space.grid.md}", + "comment": "Must have the same value as `ams.grid.column-gap`." + }, + "column-width": { "value": "20rem" }, + "padding-block-start": { "value": "1rem" }, + "padding-block-end": { + "value": "{ams.space.grid.md}", + "comment": "Must have the same value as `ams.grid.row-gap.md`." + } + } + } + } +} diff --git a/proprietary/tokens/src/components/amsterdam/ordered-list.tokens.json b/proprietary/tokens/src/components/ams/ordered-list.tokens.json similarity index 67% rename from proprietary/tokens/src/components/amsterdam/ordered-list.tokens.json rename to proprietary/tokens/src/components/ams/ordered-list.tokens.json index cf272f25d0..aee7fb7897 100644 --- a/proprietary/tokens/src/components/amsterdam/ordered-list.tokens.json +++ b/proprietary/tokens/src/components/ams/ordered-list.tokens.json @@ -1,13 +1,13 @@ { - "amsterdam": { + "ams": { "ordered-list": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, "gap": { "value": "0.75rem" }, - "inverse-color": { "value": "{amsterdam.color.primary-white}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, + "inverse-color": { "value": "{ams.color.primary-white}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, "list-style-type": { "value": "decimal" }, "item": { "margin-inline-start": { diff --git a/proprietary/tokens/src/components/ams/page-heading.tokens.json b/proprietary/tokens/src/components/ams/page-heading.tokens.json new file mode 100644 index 0000000000..6cf4c6777a --- /dev/null +++ b/proprietary/tokens/src/components/ams/page-heading.tokens.json @@ -0,0 +1,12 @@ +{ + "ams": { + "page-heading": { + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.0.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.bold}" }, + "inverse-color": { "value": "{ams.color.primary-white}" }, + "line-height": { "value": "{ams.text.level.0.font-size}" } + } + } +} diff --git a/proprietary/tokens/src/components/ams/page-menu.tokens.json b/proprietary/tokens/src/components/ams/page-menu.tokens.json new file mode 100644 index 0000000000..8832e43f61 --- /dev/null +++ b/proprietary/tokens/src/components/ams/page-menu.tokens.json @@ -0,0 +1,24 @@ +{ + "ams": { + "page-menu": { + "column-gap": { "value": "2.5rem" }, + "row-gap": { "value": "0.5rem" }, + "item": { + "color": { "value": "{ams.link-appearance.color}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "gap": { "value": "0.5rem" }, + "line-height": { "value": "{ams.text.level.6.line-height}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" }, + "text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" }, + "text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" }, + "hover": { + "color": { "value": "{ams.link-appearance.hover.color}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.hover.text-decoration-line}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/pagination.tokens.json b/proprietary/tokens/src/components/ams/pagination.tokens.json new file mode 100644 index 0000000000..ca6dcdc2f3 --- /dev/null +++ b/proprietary/tokens/src/components/ams/pagination.tokens.json @@ -0,0 +1,25 @@ +{ + "ams": { + "pagination": { + "color": { "value": "{ams.link-appearance.color}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, + "button": { + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "padding-inline": { "value": "{ams.space.inside.sm}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" }, + "text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" }, + "text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" }, + "current": { + "font-weight": { "value": "{ams.text.font-weight.bold}" } + }, + "hover": { + "color": { "value": "{ams.link-appearance.hover.color}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.hover.text-decoration-line}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/paragraph.tokens.json b/proprietary/tokens/src/components/ams/paragraph.tokens.json new file mode 100644 index 0000000000..258ed9391a --- /dev/null +++ b/proprietary/tokens/src/components/ams/paragraph.tokens.json @@ -0,0 +1,22 @@ +{ + "ams": { + "paragraph": { + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "inverse-color": { "value": "{ams.color.primary-white}" }, + "small": { + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" } + }, + "medium": { + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" } + }, + "large": { + "font-size": { "value": "{ams.text.level.4.font-size}" }, + "line-height": { "value": "{ams.text.level.4.line-height}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/amsterdam/radio.tokens.json b/proprietary/tokens/src/components/ams/radio.tokens.json similarity index 65% rename from proprietary/tokens/src/components/amsterdam/radio.tokens.json rename to proprietary/tokens/src/components/ams/radio.tokens.json index c5c2140dfa..14b1a6d6aa 100644 --- a/proprietary/tokens/src/components/amsterdam/radio.tokens.json +++ b/proprietary/tokens/src/components/ams/radio.tokens.json @@ -1,14 +1,14 @@ { - "amsterdam": { + "ams": { "radio": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, "circle": { - "border-color": { "value": "{amsterdam.color.primary-blue}" }, + "border-color": { "value": "{ams.color.primary-blue}" }, "checked": { "background-image": { "value": "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' fill='%23004699'%3E%3Ccircle cx='16' cy='16' r='16' /%3E%3C/svg%3E\")" @@ -20,7 +20,7 @@ } }, "disabled": { - "border-color": { "value": "{amsterdam.color.neutral-grey3}" }, + "border-color": { "value": "{ams.color.neutral-grey3}" }, "checked": { "background-image": { "value": "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' fill='%23767676'%3E%3Ccircle cx='16' cy='16' r='16' /%3E%3C/svg%3E\")" @@ -33,10 +33,10 @@ } }, "hover": { - "border-color": { "value": "{amsterdam.color.dark-blue}" } + "border-color": { "value": "{ams.color.dark-blue}" } }, "invalid": { - "border-color": { "value": "{amsterdam.color.primary-red}" }, + "border-color": { "value": "{ams.color.primary-red}" }, "checked": { "background-image": { "value": "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' fill='%23EC0000'%3E%3Ccircle cx='16' cy='16' r='16' /%3E%3C/svg%3E\")" @@ -48,15 +48,15 @@ } }, "hover": { - "border-color": { "value": "{amsterdam.color.primary-red}" } + "border-color": { "value": "{ams.color.primary-red}" } } } }, "disabled": { - "color": { "value": "{amsterdam.color.neutral-grey3}" } + "color": { "value": "{ams.color.neutral-grey3}" } }, "hover": { - "color": { "value": "{amsterdam.color.dark-blue}" } + "color": { "value": "{ams.color.dark-blue}" } } } } diff --git a/proprietary/tokens/src/components/ams/row.tokens.json b/proprietary/tokens/src/components/ams/row.tokens.json new file mode 100644 index 0000000000..f445a0ccd5 --- /dev/null +++ b/proprietary/tokens/src/components/ams/row.tokens.json @@ -0,0 +1,13 @@ +{ + "ams": { + "row": { + "gap": { + "xs": { "value": "{ams.space.stack.xs}" }, + "sm": { "value": "{ams.space.stack.sm}" }, + "md": { "value": "{ams.space.stack.md}" }, + "lg": { "value": "{ams.space.stack.lg}" }, + "xl": { "value": "{ams.space.stack.xl}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/amsterdam/screen.tokens.json b/proprietary/tokens/src/components/ams/screen.tokens.json similarity index 90% rename from proprietary/tokens/src/components/amsterdam/screen.tokens.json rename to proprietary/tokens/src/components/ams/screen.tokens.json index e75644022b..8f19dd5a01 100644 --- a/proprietary/tokens/src/components/amsterdam/screen.tokens.json +++ b/proprietary/tokens/src/components/ams/screen.tokens.json @@ -1,5 +1,5 @@ { - "amsterdam": { + "ams": { "screen": { "wide": { "max-width": { "value": "100rem" } diff --git a/proprietary/tokens/src/components/ams/search-field.tokens.json b/proprietary/tokens/src/components/ams/search-field.tokens.json new file mode 100644 index 0000000000..ad8649870e --- /dev/null +++ b/proprietary/tokens/src/components/ams/search-field.tokens.json @@ -0,0 +1,45 @@ +{ + "ams": { + "search-field": { + "button": { + "background-color": { "value": "{ams.color.primary-blue}" }, + "color": { "value": "{ams.color.primary-white}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "hover": { + "background-color": { "value": "{ams.color.dark-blue}" } + }, + "padding-block": { "value": "{ams.space.inside.xs}" }, + "padding-inline": { "value": "{ams.space.inside.xs}" } + }, + "input": { + "box-shadow": { + "value": "inset 0 0 0 1px {ams.color.primary-black}" + }, + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "padding-block": { "value": "{ams.space.inside.xs}" }, + "padding-inline": { "value": "{ams.space.inside.md}" }, + "cancel-button": { + "background-image": { + "value": "url(\"data:image/svg+xml;utf8,\")" + }, + "color": { "value": "{ams.color.primary-blue}" }, + "height": { "value": "{ams.text.level.6.font-size}" }, + "width": { "value": "{ams.text.level.6.font-size}" } + }, + "hover": { + "box-shadow": { + "value": "inset 0 0 0 2px {ams.color.primary-black}" + } + }, + "placeholder": { + "color": { "value": "{ams.color.neutral-grey3}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/skip-link.tokens.json b/proprietary/tokens/src/components/ams/skip-link.tokens.json new file mode 100644 index 0000000000..a52aa3fc90 --- /dev/null +++ b/proprietary/tokens/src/components/ams/skip-link.tokens.json @@ -0,0 +1,18 @@ +{ + "ams": { + "skip-link": { + "background-color": { "value": "{ams.color.primary-blue}" }, + "color": { "value": "{ams.color.primary-white}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "padding-block": { "value": "{ams.space.inside.xs}" }, + "padding-inline": { "value": "{ams.space.inside.md}" }, + "hover": { + "background-color": { "value": "{ams.color.dark-blue}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/spotlight.tokens.json b/proprietary/tokens/src/components/ams/spotlight.tokens.json new file mode 100644 index 0000000000..bc9b2bffc3 --- /dev/null +++ b/proprietary/tokens/src/components/ams/spotlight.tokens.json @@ -0,0 +1,30 @@ +{ + "ams": { + "spotlight": { + "blue": { + "background-color": { "value": "{ams.color.blue}" } + }, + "dark-blue": { + "background-color": { "value": "{ams.color.primary-blue}" } + }, + "dark-green": { + "background-color": { "value": "{ams.color.dark-green}" } + }, + "green": { + "background-color": { "value": "{ams.color.green}" } + }, + "magenta": { + "background-color": { "value": "{ams.color.magenta}" } + }, + "orange": { + "background-color": { "value": "{ams.color.orange}" } + }, + "purple": { + "background-color": { "value": "{ams.color.purple}" } + }, + "yellow": { + "background-color": { "value": "{ams.color.yellow}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/switch.tokens.json b/proprietary/tokens/src/components/ams/switch.tokens.json new file mode 100644 index 0000000000..d058f4bcdf --- /dev/null +++ b/proprietary/tokens/src/components/ams/switch.tokens.json @@ -0,0 +1,24 @@ +{ + "ams": { + "switch": { + "font-family": { "value": "{ams.text.font-family}" }, + "background-color": { "value": "{ams.color.neutral-grey3}" }, + "width": { "value": "3.5rem" }, + "thumb": { + "background-color": { "value": "{ams.color.primary-white}" }, + "width": { "value": "1.75rem" }, + "height": { "value": "1.75rem" }, + "hover": { + "color": { "value": "{ams.color.dark-blue}" } + } + }, + "checked": { + "background-color": { "value": "{ams.color.primary-blue}" } + }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "disabled": { + "background-color": { "value": "{ams.color.neutral-grey2}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/table.tokens.json b/proprietary/tokens/src/components/ams/table.tokens.json new file mode 100644 index 0000000000..7274a40f6c --- /dev/null +++ b/proprietary/tokens/src/components/ams/table.tokens.json @@ -0,0 +1,22 @@ +{ + "ams": { + "table": { + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, + "caption": { + "font-weight": { "value": "{ams.text.font-weight.bold}" } + }, + "cell": { + "border-bottom": { "value": "1px solid {ams.color.neutral-grey1}" }, + "padding-block": { "value": "{ams.space.inside.md}" }, + "padding-inline": { "value": "{ams.space.inside.md}" } + }, + "header-cell": { + "font-weight": { "value": "{ams.text.font-weight.bold}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/tabs.tokens.json b/proprietary/tokens/src/components/ams/tabs.tokens.json new file mode 100644 index 0000000000..9a7ff5b17d --- /dev/null +++ b/proprietary/tokens/src/components/ams/tabs.tokens.json @@ -0,0 +1,34 @@ +{ + "ams": { + "tabs": { + "list": { + "border-bottom": { "value": ".125rem solid {ams.color.primary-blue}" } + }, + "button": { + "background-color": { "value": "transparent" }, + "border": { "value": "none" }, + "color": { "value": "{ams.color.primary-blue}" }, + "cursor": { "value": "{ams.action.activate.cursor}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, + "outline-offset": { "value": "-0.25rem" }, + "padding-block": { "value": ".5rem" }, + "padding-inline": { "value": "1rem" }, + "hover": { + "color": { "value": "{ams.color.dark-blue}" }, + "box-shadow": { "value": "inset 0 -0.125rem 0 0 {ams.color.dark-blue}" } + }, + "selected": { + "background-color": { "value": "{ams.color.primary-blue}" }, + "color": { "value": "{ams.color.primary-white}" } + }, + "disabled": { + "color": { "value": "{ams.color.neutral-grey2}" }, + "cursor": { "value": "{ams.action.disabled.cursor}" } + } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/text-area.tokens.json b/proprietary/tokens/src/components/ams/text-area.tokens.json new file mode 100644 index 0000000000..9c3e20b5da --- /dev/null +++ b/proprietary/tokens/src/components/ams/text-area.tokens.json @@ -0,0 +1,36 @@ +{ + "ams": { + "text-area": { + "box-shadow": { "value": "inset 0 0 0 1px {ams.color.primary-black}" }, + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" }, + "min-height": { + "value": "calc({ams.text.level.6.line-height} * 1em + 2 * {ams.text-area.padding-block})" + }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "padding-block": { "value": "0.5rem" }, + "padding-inline": { "value": "1rem" }, + "disabled": { + "background-color": { "value": "{ams.color.primary-white}" }, + "box-shadow": { "value": "inset 0 0 0 1px {ams.color.neutral-grey2}" }, + "color": { "value": "{ams.color.neutral-grey2}" }, + "cursor": { "value": "{ams.action.disabled.cursor}" } + }, + "hover": { + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.primary-black}" } + }, + "invalid": { + "box-shadow": { "value": "inset 0 0 0 1px {ams.color.primary-red}" }, + "hover": { + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.primary-red}" } + } + }, + "placeholder": { + "color": { "value": "{ams.color.neutral-grey3}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/text-input.tokens.json b/proprietary/tokens/src/components/ams/text-input.tokens.json new file mode 100644 index 0000000000..566390b491 --- /dev/null +++ b/proprietary/tokens/src/components/ams/text-input.tokens.json @@ -0,0 +1,32 @@ +{ + "ams": { + "text-input": { + "box-shadow": { "value": "inset 0 0 0 1px {ams.color.primary-black}" }, + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" }, + "outline-offset": { "value": "{ams.focus.outline-offset}" }, + "padding-block": { "value": "{ams.space.inside.xs}" }, + "padding-inline": { "value": "{ams.space.inside.md}" }, + "disabled": { + "background-color": { "value": "{ams.color.primary-white}" }, + "box-shadow": { "value": "inset 0 0 0 1px {ams.color.neutral-grey2}" }, + "color": { "value": "{ams.color.neutral-grey2}" } + }, + "hover": { + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.primary-black}" } + }, + "invalid": { + "box-shadow": { "value": "inset 0 0 0 1px {ams.color.primary-red}" }, + "hover": { + "box-shadow": { "value": "inset 0 0 0 2px {ams.color.primary-red}" } + } + }, + "placeholder": { + "color": { "value": "{ams.color.neutral-grey3}" } + } + } + } +} diff --git a/proprietary/tokens/src/components/ams/top-task-link.tokens.json b/proprietary/tokens/src/components/ams/top-task-link.tokens.json new file mode 100644 index 0000000000..6794bdb940 --- /dev/null +++ b/proprietary/tokens/src/components/ams/top-task-link.tokens.json @@ -0,0 +1,28 @@ +{ + "ams": { + "top-task-link": { + "description": { + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.6.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, + "line-height": { "value": "{ams.text.level.6.line-height}" } + }, + "label": { + "color": { "value": "{ams.link-appearance.color}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.4.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.bold}" }, + "line-height": { "value": "{ams.text.level.4.line-height}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" }, + "text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" }, + "text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" }, + "hover": { + "color": { "value": "{ams.color.dark-blue}" }, + "text-decoration-line": { "value": "{ams.link-appearance.subtle.hover.text-decoration-line}" } + } + }, + "outline-offset": { "value": "{ams.focus.outline-offset}" } + } + } +} diff --git a/proprietary/tokens/src/components/amsterdam/unordered-list.tokens.json b/proprietary/tokens/src/components/ams/unordered-list.tokens.json similarity index 67% rename from proprietary/tokens/src/components/amsterdam/unordered-list.tokens.json rename to proprietary/tokens/src/components/ams/unordered-list.tokens.json index ea78c4b229..5a57f16a29 100644 --- a/proprietary/tokens/src/components/amsterdam/unordered-list.tokens.json +++ b/proprietary/tokens/src/components/ams/unordered-list.tokens.json @@ -1,13 +1,13 @@ { - "amsterdam": { + "ams": { "unordered-list": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, + "color": { "value": "{ams.color.primary-black}" }, + "font-family": { "value": "{ams.text.font-family}" }, + "font-size": { "value": "{ams.text.level.5.font-size}" }, + "font-weight": { "value": "{ams.text.font-weight.normal}" }, "gap": { "value": "0.75rem" }, - "inverse-color": { "value": "{amsterdam.color.primary-white}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, + "inverse-color": { "value": "{ams.color.primary-white}" }, + "line-height": { "value": "{ams.text.level.5.line-height}" }, "list-style-type": { "value": "'\\2022'" }, "item": { "margin-inline-start": { diff --git a/proprietary/tokens/src/components/amsterdam/accordion.tokens.json b/proprietary/tokens/src/components/amsterdam/accordion.tokens.json deleted file mode 100644 index b414c5db7b..0000000000 --- a/proprietary/tokens/src/components/amsterdam/accordion.tokens.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "amsterdam": { - "accordion": { - "button": { - "color": { "value": "{amsterdam.color.primary-blue}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, - "padding-block": { "value": "{amsterdam.space.inside.sm}" }, - "padding-inline": { "value": "{amsterdam.space.inside.md}" }, - "focus": { - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" } - }, - "hover": { - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.neutral-grey3}" } - } - }, - "panel": { - "padding-block": { "value": "{amsterdam.space.inside.md}" }, - "padding-inline": { "value": "{amsterdam.space.inside.md}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/alert.tokens.json b/proprietary/tokens/src/components/amsterdam/alert.tokens.json deleted file mode 100644 index db17ccc6bd..0000000000 --- a/proprietary/tokens/src/components/amsterdam/alert.tokens.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "amsterdam": { - "alert": { - "border-width": { "value": "4px" }, - "border-style": { "value": "solid" }, - "gap": { "value": "1rem" }, - "padding-block": { "value": "{amsterdam.space.inside.md}" }, - "padding-inline": { "value": "{amsterdam.space.inside.lg}" }, - "error": { - "border-color": { "value": "{amsterdam.color.primary-red}" } - }, - "info": { - "border-color": { "value": "{amsterdam.color.primary-blue}" } - }, - "success": { - "border-color": { "value": "{amsterdam.color.dark-green}" } - }, - "warning": { - "border-color": { "value": "{amsterdam.color.orange}" } - }, - "close": { - "fill": { "value": "{amsterdam.color.primary-black}" }, - "hover": { - "fill": { "value": "{amsterdam.color.primary-blue}" } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/aspect-ratio.tokens.json b/proprietary/tokens/src/components/amsterdam/aspect-ratio.tokens.json deleted file mode 100644 index ffe608870a..0000000000 --- a/proprietary/tokens/src/components/amsterdam/aspect-ratio.tokens.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "amsterdam": { - "aspect-ratio": { - "x-tall": { "value": "{amsterdam.proportion.x-tall}" }, - "tall": { "value": "{amsterdam.proportion.tall}" }, - "square": { "value": "{amsterdam.proportion.square}" }, - "wide": { "value": "{amsterdam.proportion.wide}" }, - "x-wide": { "value": "{amsterdam.proportion.x-wide}" }, - "2x-wide": { "value": "{amsterdam.proportion.2x-wide}" } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/badge.tokens.json b/proprietary/tokens/src/components/amsterdam/badge.tokens.json deleted file mode 100644 index 89832f92d8..0000000000 --- a/proprietary/tokens/src/components/amsterdam/badge.tokens.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "amsterdam": { - "badge": { - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, - "padding-inline": { "value": "{amsterdam.space.inside.xs}" }, - "blue": { - "background-color": { "value": "{amsterdam.color.blue}" }, - "color": { "value": "{amsterdam.color.primary-black}" } - }, - "dark-blue": { - "background-color": { "value": "{amsterdam.color.primary-blue}" }, - "color": { "value": "{amsterdam.color.primary-white}" } - }, - "dark-green": { - "background-color": { "value": "{amsterdam.color.dark-green}" }, - "color": { "value": "{amsterdam.color.primary-white}" } - }, - "green": { - "background-color": { "value": "{amsterdam.color.green}" }, - "color": { "value": "{amsterdam.color.primary-black}" } - }, - "magenta": { - "background-color": { "value": "{amsterdam.color.magenta}" }, - "color": { "value": "{amsterdam.color.primary-white}" } - }, - "orange": { - "background-color": { "value": "{amsterdam.color.orange}" }, - "color": { "value": "{amsterdam.color.primary-black}" } - }, - "purple": { - "background-color": { "value": "{amsterdam.color.purple}" }, - "color": { "value": "{amsterdam.color.primary-white}" } - }, - "yellow": { - "background-color": { "value": "{amsterdam.color.yellow}" }, - "color": { "value": "{amsterdam.color.primary-black}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/blockquote.tokens.json b/proprietary/tokens/src/components/amsterdam/blockquote.tokens.json deleted file mode 100644 index 3061174dc7..0000000000 --- a/proprietary/tokens/src/components/amsterdam/blockquote.tokens.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "amsterdam": { - "blockquote": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.3.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" }, - "line-height": { "value": "{amsterdam.typography.text-level.3.line-height}" }, - "inverse-color": { "value": "{amsterdam.color.primary-white}" } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/breadcrumb.tokens.json b/proprietary/tokens/src/components/amsterdam/breadcrumb.tokens.json deleted file mode 100644 index 31cd659d70..0000000000 --- a/proprietary/tokens/src/components/amsterdam/breadcrumb.tokens.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "amsterdam": { - "breadcrumb": { - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" }, - "separator": { - "background-image": { - "value": "url(\"data:image/svg+xml;utf8,\")" - } - }, - "item-link": { - "color": { "value": "{amsterdam.link-appearance.color}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.text-decoration-line}" }, - "text-decoration-thickness": { "value": "{amsterdam.link-appearance.text-decoration-thickness}" }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.text-underline-offset}" }, - "hover": { - "color": { "value": "{amsterdam.color.dark-blue}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.hover.text-decoration-line}" } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/button.tokens.json b/proprietary/tokens/src/components/amsterdam/button.tokens.json deleted file mode 100644 index ca1f5ad430..0000000000 --- a/proprietary/tokens/src/components/amsterdam/button.tokens.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "amsterdam": { - "button": { - "cursor": { "value": "{amsterdam.action.activate.cursor}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, - "gap": { "value": "1rem" }, - "padding-block": { "value": "{amsterdam.space.inside.xs}" }, - "padding-inline": { "value": "{amsterdam.space.inside.md}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "disabled": { - "cursor": { "value": "{amsterdam.action.disabled.cursor}" } - }, - "primary": { - "background-color": { "value": "{amsterdam.color.primary-blue}" }, - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.primary-blue}" }, - "color": { "value": "{amsterdam.color.primary-white}" }, - "disabled": { - "background-color": { "value": "{amsterdam.color.neutral-grey2}" }, - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.neutral-grey2}" } - }, - "hover": { - "background-color": { "value": "{amsterdam.color.dark-blue}" }, - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.dark-blue}" } - } - }, - "secondary": { - "background-color": { "value": "{amsterdam.color.primary-white}" }, - "color": { "value": "{amsterdam.color.primary-blue}" }, - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.primary-blue}" }, - "hover": { - "box-shadow": { "value": "inset 0 0 0 3px {amsterdam.color.dark-blue}" }, - "color": { "value": "{amsterdam.color.dark-blue}" } - }, - "disabled": { - "background-color": { "value": "{amsterdam.color.primary-white}" }, - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.neutral-grey2}" }, - "color": { "value": "{amsterdam.color.neutral-grey2}" } - }, - "focus": { - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.primary-blue}" } - } - }, - "tertiary": { - "background-color": { "value": "transparent" }, - "color": { "value": "{amsterdam.color.primary-blue}" }, - "hover": { - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.dark-blue}" }, - "color": { "value": "{amsterdam.color.dark-blue}" } - }, - "disabled": { - "background-color": { "value": "transparent" }, - "color": { "value": "{amsterdam.color.neutral-grey2}" } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/card.tokens.json b/proprietary/tokens/src/components/amsterdam/card.tokens.json deleted file mode 100644 index bbc37d2fd8..0000000000 --- a/proprietary/tokens/src/components/amsterdam/card.tokens.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "amsterdam": { - "card": { - "link": { - "color": { "value": "{amsterdam.link-appearance.color}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.text-decoration-line}" }, - "text-decoration-thickness": { "value": "{amsterdam.link-appearance.text-decoration-thickness}" }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.text-underline-offset}" }, - "hover": { - "color": { "value": "{amsterdam.link-appearance.hover.color}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.hover.text-decoration-line}" } - } - }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/checkbox.tokens.json b/proprietary/tokens/src/components/amsterdam/checkbox.tokens.json deleted file mode 100644 index 6aa81f79c7..0000000000 --- a/proprietary/tokens/src/components/amsterdam/checkbox.tokens.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "amsterdam": { - "checkbox": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "checkmark": { - "border-color": { "value": "{amsterdam.color.primary-blue}" }, - "checked": { - "background-color": { "value": "{amsterdam.color.primary-blue}" }, - "background-image": { - "value": "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M12.216 27.016 0 14.168l2.91-2.77 9.346 9.837L29.129 4 32 6.8z'/%3E%3C/svg%3E\")" - }, - "hover": { - "background-color": { "value": "{amsterdam.color.dark-blue}" } - } - }, - "disabled": { - "border-color": { "value": "{amsterdam.color.neutral-grey3}" }, - "checked": { - "background-color": { "value": "{amsterdam.color.neutral-grey3}" }, - "hover": { - "background-color": { "value": "{amsterdam.color.neutral-grey3}" } - } - }, - "indeterminate": { - "background-color": { "value": "{amsterdam.color.neutral-grey3}" }, - "hover": { - "background-color": { "value": "{amsterdam.color.neutral-grey3}" } - } - } - }, - "hover": { - "border-color": { "value": "{amsterdam.color.dark-blue}" } - }, - "invalid": { - "border-color": { "value": "{amsterdam.color.primary-red}" }, - "checked": { - "background-color": { "value": "{amsterdam.color.primary-red}" }, - "hover": { - "background-color": { "value": "{amsterdam.color.primary-red}" } - } - }, - "hover": { - "border-color": { "value": "{amsterdam.color.primary-red}" } - }, - "indeterminate": { - "background-color": { "value": "{amsterdam.color.primary-red}" }, - "hover": { - "background-color": { "value": "{amsterdam.color.primary-red}" } - } - } - }, - "indeterminate": { - "background-color": { "value": "{amsterdam.color.primary-blue}" }, - "background-image": { - "value": "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='white'%3E%3Cpath fill-rule='evenodd' d='M0 13.714h32v4H0z'/%3E%3C/svg%3E\")" - }, - "hover": { - "background-color": { "value": "{amsterdam.color.dark-blue}" } - } - } - }, - "disabled": { - "color": { "value": "{amsterdam.color.neutral-grey3}" } - }, - "hover": { - "color": { "value": "{amsterdam.color.dark-blue}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/column.tokens.json b/proprietary/tokens/src/components/amsterdam/column.tokens.json deleted file mode 100644 index 479adfdd52..0000000000 --- a/proprietary/tokens/src/components/amsterdam/column.tokens.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "amsterdam": { - "column": { - "gap": { - "xs": { "value": "{amsterdam.space.grid.xs}" }, - "sm": { "value": "{amsterdam.space.grid.sm}" }, - "md": { "value": "{amsterdam.space.grid.md}" }, - "lg": { "value": "{amsterdam.space.grid.lg}" }, - "xl": { "value": "{amsterdam.space.grid.xl}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/fieldset.tokens.json b/proprietary/tokens/src/components/amsterdam/fieldset.tokens.json deleted file mode 100644 index 7e6e8428ae..0000000000 --- a/proprietary/tokens/src/components/amsterdam/fieldset.tokens.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "amsterdam": { - "fieldset": { - "legend": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.4.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" }, - "line-height": { "value": "{amsterdam.typography.text-level.4.line-height}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/form-label.tokens.json b/proprietary/tokens/src/components/amsterdam/form-label.tokens.json deleted file mode 100644 index 01d8f6377b..0000000000 --- a/proprietary/tokens/src/components/amsterdam/form-label.tokens.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "amsterdam": { - "form-label": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.4.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" }, - "line-height": { "value": "{amsterdam.typography.text-level.4.line-height}" } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/gap.tokens.json b/proprietary/tokens/src/components/amsterdam/gap.tokens.json deleted file mode 100644 index 2adefede21..0000000000 --- a/proprietary/tokens/src/components/amsterdam/gap.tokens.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "amsterdam": { - "gap": { - "xs": { "value": "{amsterdam.space.grid.xs}" }, - "sm": { "value": "{amsterdam.space.grid.sm}" }, - "md": { "value": "{amsterdam.space.grid.md}" }, - "lg": { "value": "{amsterdam.space.grid.lg}" }, - "xl": { "value": "{amsterdam.space.grid.xl}" } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/grid.compact.tokens.json b/proprietary/tokens/src/components/amsterdam/grid.compact.tokens.json deleted file mode 100644 index 73d84de55c..0000000000 --- a/proprietary/tokens/src/components/amsterdam/grid.compact.tokens.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "amsterdam": { - "grid": { - "padding-inline": { "value": "{amsterdam.space.grid.md}" } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/grid.tokens.json b/proprietary/tokens/src/components/amsterdam/grid.tokens.json deleted file mode 100644 index 048ee74195..0000000000 --- a/proprietary/tokens/src/components/amsterdam/grid.tokens.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "amsterdam": { - "grid": { - "column-count": { "value": "4" }, - "column-gap": { "value": "{amsterdam.space.grid.md}" }, - "padding-block": { - "sm": { "value": "{amsterdam.space.grid.sm}" }, - "md": { "value": "{amsterdam.space.grid.md}" }, - "lg": { "value": "{amsterdam.space.grid.lg}" } - }, - "padding-inline": { "value": "{amsterdam.space.grid.lg}" }, - "row-gap": { - "sm": { "value": "{amsterdam.space.grid.sm}" }, - "md": { "value": "{amsterdam.space.grid.md}" }, - "lg": { "value": "{amsterdam.space.grid.lg}" } - }, - "medium": { - "column-count": { "value": "8" } - }, - "wide": { - "column-count": { "value": "12" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/header.tokens.json b/proprietary/tokens/src/components/amsterdam/header.tokens.json deleted file mode 100644 index 29ae3527b6..0000000000 --- a/proprietary/tokens/src/components/amsterdam/header.tokens.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "amsterdam": { - "header": { - "column-gap": { - "value": "{amsterdam.space.grid.md}", - "comment": "Must have the same value as `amsterdam.grid.column-gap`." - }, - "padding-block": { "value": "{amsterdam.space.inside.md}" }, - "logo-link": { - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/heading.tokens.json b/proprietary/tokens/src/components/amsterdam/heading.tokens.json deleted file mode 100644 index a7a07a076a..0000000000 --- a/proprietary/tokens/src/components/amsterdam/heading.tokens.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "amsterdam": { - "heading": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" }, - "inverse-color": { "value": "{amsterdam.color.primary-white}" }, - "level-1": { - "font-size": { "value": "{amsterdam.typography.text-level.1.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.1.line-height}" } - }, - "level-2": { - "font-size": { "value": "{amsterdam.typography.text-level.2.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.2.line-height}" } - }, - "level-3": { - "font-size": { "value": "{amsterdam.typography.text-level.3.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.3.line-height}" } - }, - "level-4": { - "font-size": { "value": "{amsterdam.typography.text-level.4.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.4.line-height}" } - }, - "level-5": { - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" } - }, - "level-6": { - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/icon-button.tokens.json b/proprietary/tokens/src/components/amsterdam/icon-button.tokens.json deleted file mode 100644 index 80db00d823..0000000000 --- a/proprietary/tokens/src/components/amsterdam/icon-button.tokens.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "amsterdam": { - "icon-button": { - "color": { "value": "{amsterdam.color.primary-blue}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "hover": { - "background-color": { "value": "rgba(0, 70, 153, 0.125)" }, - "color": { "value": "{amsterdam.color.dark-blue}" } - }, - "disabled": { - "color": { "value": "{amsterdam.color.neutral-grey2}" } - }, - "on-background-light": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "hover": { - "background-color": { "value": "rgba(0, 0, 0, 0.125)" }, - "color": { "value": "{amsterdam.color.primary-black}" } - }, - "disabled": { - "color": { "value": "{amsterdam.color.neutral-grey2}" } - } - }, - "on-background-dark": { - "background-color": { "value": "{amsterdam.color.primary-blue}" }, - "color": { "value": "{amsterdam.color.primary-white}" }, - "hover": { - "background-color": { "value": "{amsterdam.color.dark-blue}" }, - "color": { "value": "{amsterdam.color.primary-white}" } - }, - "disabled": { - "color": { "value": "{amsterdam.color.primary-white}" }, - "background-color": { "value": "{amsterdam.color.neutral-grey2}" } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/icon.tokens.json b/proprietary/tokens/src/components/amsterdam/icon.tokens.json deleted file mode 100644 index 76f5e2648b..0000000000 --- a/proprietary/tokens/src/components/amsterdam/icon.tokens.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "amsterdam": { - "icon": { - "size-3": { - "font-size": { "value": "{amsterdam.typography.text-level.3.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.3.line-height}" } - }, - "size-4": { - "font-size": { "value": "{amsterdam.typography.text-level.4.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.4.line-height}" } - }, - "size-5": { - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" } - }, - "size-6": { - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/link-list.tokens.json b/proprietary/tokens/src/components/amsterdam/link-list.tokens.json deleted file mode 100644 index 17b5e15f99..0000000000 --- a/proprietary/tokens/src/components/amsterdam/link-list.tokens.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "amsterdam": { - "link-list": { - "gap": { "value": "0.5em" }, - "link": { - "color": { "value": "{amsterdam.link-appearance.color}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "gap": { "value": "0.5em" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.text-decoration-line}" }, - "text-decoration-thickness": { "value": "{amsterdam.link-appearance.text-decoration-thickness}" }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.text-underline-offset}" }, - "small": { - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" } - }, - "medium": { - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" } - }, - "large": { - "font-size": { "value": "{amsterdam.typography.text-level.4.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.4.line-height}" } - }, - "hover": { - "color": { "value": "{amsterdam.link-appearance.hover.color}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.hover.text-decoration-line}" } - }, - "on-background-dark": { - "color": { "value": "{amsterdam.link-appearance.on-background-dark.color}" }, - "hover": { - "color": { "value": "{amsterdam.link-appearance.on-background-dark.color}" } - } - }, - "on-background-light": { - "color": { "value": "{amsterdam.link-appearance.on-background-light.color}" }, - "hover": { - "color": { "value": "{amsterdam.link-appearance.on-background-light.color}" } - } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/link.tokens.json b/proprietary/tokens/src/components/amsterdam/link.tokens.json deleted file mode 100644 index 929a6afcb5..0000000000 --- a/proprietary/tokens/src/components/amsterdam/link.tokens.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "amsterdam": { - "link": { - "color": { "value": "{amsterdam.link-appearance.color}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "hover": { - "color": { "value": "{amsterdam.link-appearance.hover.color}" } - }, - "inline": { - "text-decoration-line": { "value": "{amsterdam.link-appearance.regular.text-decoration-line}" }, - "text-decoration-thickness": { "value": "{amsterdam.link-appearance.text-decoration-thickness}" }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.text-underline-offset}" }, - "font-family": { "value": "inherit" }, - "font-size": { "value": "inherit" }, - "line-height": { "value": "inherit" }, - "hover": { - "text-decoration-thickness": { - "value": "{amsterdam.link-appearance.regular.hover.text-decoration-thickness}" - }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.regular.hover.text-underline-offset}" } - }, - "visited": { - "color": { "value": "{amsterdam.color.purple}" } - } - }, - "standalone": { - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.regular.text-decoration-line}" }, - "text-decoration-thickness": { "value": "{amsterdam.link-appearance.text-decoration-thickness}" }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.text-underline-offset}" }, - "hover": { - "text-decoration-thickness": { - "value": "{amsterdam.link-appearance.regular.hover.text-decoration-thickness}" - }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.regular.hover.text-underline-offset}" } - } - }, - "on-background-dark": { - "color": { "value": "{amsterdam.link-appearance.on-background-dark.color}" }, - "hover": { - "color": { "value": "{amsterdam.link-appearance.on-background-dark.color}" } - }, - "visited": { - "color": { "value": "{amsterdam.link-appearance.on-background-dark.color}" } - } - }, - "on-background-light": { - "color": { "value": "{amsterdam.link-appearance.on-background-light.color}" }, - "hover": { - "color": { "value": "{amsterdam.link-appearance.on-background-light.color}" } - }, - "visited": { - "color": { "value": "{amsterdam.link-appearance.on-background-light.color}" } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/logo.tokens.json b/proprietary/tokens/src/components/amsterdam/logo.tokens.json deleted file mode 100644 index c2033a0c85..0000000000 --- a/proprietary/tokens/src/components/amsterdam/logo.tokens.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "amsterdam": { - "logo": { - "height": { "value": "2.5rem" }, - "emblem": { "color": { "value": "{amsterdam.color.primary-red}" } }, - "title": { "color": { "value": "{amsterdam.color.primary-red}" } }, - "subsite": { "color": { "value": "{amsterdam.color.primary-black}" } } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/margin.tokens.json b/proprietary/tokens/src/components/amsterdam/margin.tokens.json deleted file mode 100644 index b058657661..0000000000 --- a/proprietary/tokens/src/components/amsterdam/margin.tokens.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "amsterdam": { - "margin": { - "xs": { "value": "{amsterdam.space.grid.xs}" }, - "sm": { "value": "{amsterdam.space.grid.sm}" }, - "md": { "value": "{amsterdam.space.grid.md}" }, - "lg": { "value": "{amsterdam.space.grid.lg}" }, - "xl": { "value": "{amsterdam.space.grid.xl}" } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/mark.tokens.json b/proprietary/tokens/src/components/amsterdam/mark.tokens.json deleted file mode 100644 index ee4eefd2ca..0000000000 --- a/proprietary/tokens/src/components/amsterdam/mark.tokens.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "amsterdam": { - "mark": { - "background-color": { "value": "{amsterdam.color.yellow}" } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/mega-menu.tokens.json b/proprietary/tokens/src/components/amsterdam/mega-menu.tokens.json deleted file mode 100644 index c6efdb1de4..0000000000 --- a/proprietary/tokens/src/components/amsterdam/mega-menu.tokens.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "amsterdam": { - "mega-menu": { - "list-category": { - "column-gap": { - "value": "{amsterdam.space.grid.md}", - "comment": "Must have the same value as `amsterdam.grid.column-gap`." - }, - "column-width": { "value": "20rem" }, - "padding-block-start": { "value": "1rem" }, - "padding-block-end": { - "value": "{amsterdam.space.grid.md}", - "comment": "Must have the same value as `amsterdam.grid.row-gap.md`." - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/page-heading.tokens.json b/proprietary/tokens/src/components/amsterdam/page-heading.tokens.json deleted file mode 100644 index 05f4198b37..0000000000 --- a/proprietary/tokens/src/components/amsterdam/page-heading.tokens.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "amsterdam": { - "page-heading": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.0.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" }, - "inverse-color": { "value": "{amsterdam.color.primary-white}" }, - "line-height": { "value": "{amsterdam.typography.text-level.0.font-size}" } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/page-menu.tokens.json b/proprietary/tokens/src/components/amsterdam/page-menu.tokens.json deleted file mode 100644 index 534d7df1be..0000000000 --- a/proprietary/tokens/src/components/amsterdam/page-menu.tokens.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "amsterdam": { - "page-menu": { - "column-gap": { "value": "2.5rem" }, - "row-gap": { "value": "0.5rem" }, - "item": { - "color": { "value": "{amsterdam.link-appearance.color}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "gap": { "value": "0.5rem" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.text-decoration-line}" }, - "text-decoration-thickness": { "value": "{amsterdam.link-appearance.text-decoration-thickness}" }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.text-underline-offset}" }, - "hover": { - "color": { "value": "{amsterdam.link-appearance.hover.color}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.hover.text-decoration-line}" } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/pagination.tokens.json b/proprietary/tokens/src/components/amsterdam/pagination.tokens.json deleted file mode 100644 index dca6a8b268..0000000000 --- a/proprietary/tokens/src/components/amsterdam/pagination.tokens.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "amsterdam": { - "pagination": { - "color": { "value": "{amsterdam.link-appearance.color}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, - "button": { - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "padding-inline": { "value": "{amsterdam.space.inside.sm}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.text-decoration-line}" }, - "text-decoration-thickness": { "value": "{amsterdam.link-appearance.text-decoration-thickness}" }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.text-underline-offset}" }, - "current": { - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" } - }, - "hover": { - "color": { "value": "{amsterdam.link-appearance.hover.color}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.hover.text-decoration-line}" } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/paragraph.tokens.json b/proprietary/tokens/src/components/amsterdam/paragraph.tokens.json deleted file mode 100644 index 0b78d70f46..0000000000 --- a/proprietary/tokens/src/components/amsterdam/paragraph.tokens.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "amsterdam": { - "paragraph": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "inverse-color": { "value": "{amsterdam.color.primary-white}" }, - "small": { - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" } - }, - "medium": { - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" } - }, - "large": { - "font-size": { "value": "{amsterdam.typography.text-level.4.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.4.line-height}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/row.tokens.json b/proprietary/tokens/src/components/amsterdam/row.tokens.json deleted file mode 100644 index cdae8d4c90..0000000000 --- a/proprietary/tokens/src/components/amsterdam/row.tokens.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "amsterdam": { - "row": { - "gap": { - "xs": { "value": "{amsterdam.space.stack.xs}" }, - "sm": { "value": "{amsterdam.space.stack.sm}" }, - "md": { "value": "{amsterdam.space.stack.md}" }, - "lg": { "value": "{amsterdam.space.stack.lg}" }, - "xl": { "value": "{amsterdam.space.stack.xl}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/search-field.tokens.json b/proprietary/tokens/src/components/amsterdam/search-field.tokens.json deleted file mode 100644 index 136c9407b6..0000000000 --- a/proprietary/tokens/src/components/amsterdam/search-field.tokens.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "amsterdam": { - "search-field": { - "button": { - "background-color": { "value": "{amsterdam.color.primary-blue}" }, - "color": { "value": "{amsterdam.color.primary-white}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "hover": { - "background-color": { "value": "{amsterdam.color.dark-blue}" } - }, - "padding-block": { "value": "{amsterdam.space.inside.xs}" }, - "padding-inline": { "value": "{amsterdam.space.inside.xs}" } - }, - "input": { - "box-shadow": { - "value": "inset 0 0 0 1px {amsterdam.color.primary-black}" - }, - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "padding-block": { "value": "{amsterdam.space.inside.xs}" }, - "padding-inline": { "value": "{amsterdam.space.inside.md}" }, - "cancel-button": { - "background-image": { - "value": "url(\"data:image/svg+xml;utf8,\")" - }, - "color": { "value": "{amsterdam.color.primary-blue}" }, - "height": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "width": { "value": "{amsterdam.typography.text-level.6.font-size}" } - }, - "hover": { - "box-shadow": { - "value": "inset 0 0 0 2px {amsterdam.color.primary-black}" - } - }, - "placeholder": { - "color": { "value": "{amsterdam.color.neutral-grey3}" } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/skip-link.tokens.json b/proprietary/tokens/src/components/amsterdam/skip-link.tokens.json deleted file mode 100644 index 3b21292038..0000000000 --- a/proprietary/tokens/src/components/amsterdam/skip-link.tokens.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "amsterdam": { - "skip-link": { - "background-color": { "value": "{amsterdam.color.primary-blue}" }, - "color": { "value": "{amsterdam.color.primary-white}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "padding-block": { "value": "{amsterdam.space.inside.xs}" }, - "padding-inline": { "value": "{amsterdam.space.inside.md}" }, - "hover": { - "background-color": { "value": "{amsterdam.color.dark-blue}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/spotlight.tokens.json b/proprietary/tokens/src/components/amsterdam/spotlight.tokens.json deleted file mode 100644 index 936b3e9688..0000000000 --- a/proprietary/tokens/src/components/amsterdam/spotlight.tokens.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "amsterdam": { - "spotlight": { - "blue": { - "background-color": { "value": "{amsterdam.color.blue}" } - }, - "dark-blue": { - "background-color": { "value": "{amsterdam.color.primary-blue}" } - }, - "dark-green": { - "background-color": { "value": "{amsterdam.color.dark-green}" } - }, - "green": { - "background-color": { "value": "{amsterdam.color.green}" } - }, - "magenta": { - "background-color": { "value": "{amsterdam.color.magenta}" } - }, - "orange": { - "background-color": { "value": "{amsterdam.color.orange}" } - }, - "purple": { - "background-color": { "value": "{amsterdam.color.purple}" } - }, - "yellow": { - "background-color": { "value": "{amsterdam.color.yellow}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/switch.tokens.json b/proprietary/tokens/src/components/amsterdam/switch.tokens.json deleted file mode 100644 index 531b091edf..0000000000 --- a/proprietary/tokens/src/components/amsterdam/switch.tokens.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "amsterdam": { - "switch": { - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "background-color": { "value": "{amsterdam.color.neutral-grey3}" }, - "width": { "value": "3.5rem" }, - "thumb": { - "background-color": { "value": "{amsterdam.color.primary-white}" }, - "width": { "value": "1.75rem" }, - "height": { "value": "1.75rem" }, - "hover": { - "color": { "value": "{amsterdam.color.dark-blue}" } - } - }, - "checked": { - "background-color": { "value": "{amsterdam.color.primary-blue}" } - }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "disabled": { - "background-color": { "value": "{amsterdam.color.neutral-grey2}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/table.tokens.json b/proprietary/tokens/src/components/amsterdam/table.tokens.json deleted file mode 100644 index 09879551d0..0000000000 --- a/proprietary/tokens/src/components/amsterdam/table.tokens.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "amsterdam": { - "table": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, - "caption": { - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" } - }, - "cell": { - "border-bottom": { "value": "1px solid {amsterdam.color.neutral-grey1}" }, - "padding-block": { "value": "{amsterdam.space.inside.md}" }, - "padding-inline": { "value": "{amsterdam.space.inside.md}" } - }, - "header-cell": { - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/tabs.tokens.json b/proprietary/tokens/src/components/amsterdam/tabs.tokens.json deleted file mode 100644 index 8dc150bff9..0000000000 --- a/proprietary/tokens/src/components/amsterdam/tabs.tokens.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "amsterdam": { - "tabs": { - "list": { - "border-bottom": { "value": ".125rem solid {amsterdam.color.primary-blue}" } - }, - "button": { - "background-color": { "value": "transparent" }, - "border": { "value": "none" }, - "color": { "value": "{amsterdam.color.primary-blue}" }, - "cursor": { "value": "{amsterdam.action.activate.cursor}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "font-size": { "value": "{amsterdam.typography.text-level.5.font-size}" }, - "line-height": { "value": "{amsterdam.typography.text-level.5.line-height}" }, - "outline-offset": { "value": "-0.25rem" }, - "padding-block": { "value": ".5rem" }, - "padding-inline": { "value": "1rem" }, - "hover": { - "color": { "value": "{amsterdam.color.dark-blue}" }, - "box-shadow": { "value": "inset 0 -0.125rem 0 0 {amsterdam.color.dark-blue}" } - }, - "selected": { - "background-color": { "value": "{amsterdam.color.primary-blue}" }, - "color": { "value": "{amsterdam.color.primary-white}" } - }, - "disabled": { - "color": { "value": "{amsterdam.color.neutral-grey2}" }, - "cursor": { "value": "{amsterdam.action.disabled.cursor}" } - } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/text-area.tokens.json b/proprietary/tokens/src/components/amsterdam/text-area.tokens.json deleted file mode 100644 index 505270d29b..0000000000 --- a/proprietary/tokens/src/components/amsterdam/text-area.tokens.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "amsterdam": { - "text-area": { - "box-shadow": { "value": "inset 0 0 0 1px {amsterdam.color.primary-black}" }, - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" }, - "min-height": { - "value": "calc({amsterdam.typography.text-level.6.line-height} * 1em + 2 * {amsterdam.text-area.padding-block})" - }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "padding-block": { "value": "0.5rem" }, - "padding-inline": { "value": "1rem" }, - "disabled": { - "background-color": { "value": "{amsterdam.color.primary-white}" }, - "box-shadow": { "value": "inset 0 0 0 1px {amsterdam.color.neutral-grey2}" }, - "color": { "value": "{amsterdam.color.neutral-grey2}" }, - "cursor": { "value": "{amsterdam.action.disabled.cursor}" } - }, - "hover": { - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.primary-black}" } - }, - "invalid": { - "box-shadow": { "value": "inset 0 0 0 1px {amsterdam.color.primary-red}" }, - "hover": { - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.primary-red}" } - } - }, - "placeholder": { - "color": { "value": "{amsterdam.color.neutral-grey3}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/text-input.tokens.json b/proprietary/tokens/src/components/amsterdam/text-input.tokens.json deleted file mode 100644 index 6d89bc560d..0000000000 --- a/proprietary/tokens/src/components/amsterdam/text-input.tokens.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "amsterdam": { - "text-input": { - "box-shadow": { "value": "inset 0 0 0 1px {amsterdam.color.primary-black}" }, - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" }, - "padding-block": { "value": "{amsterdam.space.inside.xs}" }, - "padding-inline": { "value": "{amsterdam.space.inside.md}" }, - "disabled": { - "background-color": { "value": "{amsterdam.color.primary-white}" }, - "box-shadow": { "value": "inset 0 0 0 1px {amsterdam.color.neutral-grey2}" }, - "color": { "value": "{amsterdam.color.neutral-grey2}" } - }, - "hover": { - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.primary-black}" } - }, - "invalid": { - "box-shadow": { "value": "inset 0 0 0 1px {amsterdam.color.primary-red}" }, - "hover": { - "box-shadow": { "value": "inset 0 0 0 2px {amsterdam.color.primary-red}" } - } - }, - "placeholder": { - "color": { "value": "{amsterdam.color.neutral-grey3}" } - } - } - } -} diff --git a/proprietary/tokens/src/components/amsterdam/top-task-link.tokens.json b/proprietary/tokens/src/components/amsterdam/top-task-link.tokens.json deleted file mode 100644 index bee69ba5a1..0000000000 --- a/proprietary/tokens/src/components/amsterdam/top-task-link.tokens.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "amsterdam": { - "top-task-link": { - "description": { - "color": { "value": "{amsterdam.color.primary-black}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.6.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.normal}" }, - "line-height": { "value": "{amsterdam.typography.text-level.6.line-height}" } - }, - "label": { - "color": { "value": "{amsterdam.link-appearance.color}" }, - "font-family": { "value": "{amsterdam.typography.font-family}" }, - "font-size": { "value": "{amsterdam.typography.text-level.4.font-size}" }, - "font-weight": { "value": "{amsterdam.typography.font-weight.bold}" }, - "line-height": { "value": "{amsterdam.typography.text-level.4.line-height}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.text-decoration-line}" }, - "text-decoration-thickness": { "value": "{amsterdam.link-appearance.text-decoration-thickness}" }, - "text-underline-offset": { "value": "{amsterdam.link-appearance.text-underline-offset}" }, - "hover": { - "color": { "value": "{amsterdam.color.dark-blue}" }, - "text-decoration-line": { "value": "{amsterdam.link-appearance.subtle.hover.text-decoration-line}" } - } - }, - "outline-offset": { "value": "{amsterdam.focus.outline-offset}" } - } - } -} diff --git a/storybook/config/preview-body.html b/storybook/config/preview-body.html index 5e14319549..d655261501 100644 --- a/storybook/config/preview-body.html +++ b/storybook/config/preview-body.html @@ -1,28 +1,28 @@