Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
db5446f
updated CSS selectors for local `public/assets` themed tokens CSS fil…
didoo Nov 18, 2025
63142af
basic implementation of `<ShwCarbonizationComparisonGrid>`
didoo Sep 23, 2025
e97639b
refactored implementation of `<ShwCarbonizationComparisonGrid>`
didoo Sep 23, 2025
06c45fe
implemented β€œCarbonization” section for `Badge` page
didoo Sep 23, 2025
efec79e
implemented β€œCarbonization” section for `BadgeCount` page
didoo Sep 23, 2025
358ff82
implemented β€œCarbonization” section for `Button` page
didoo Sep 23, 2025
a80fd5d
implemented β€œCarbonization” section for `Focus Ring` page
didoo Sep 24, 2025
7c3e7ae
implemented β€œCarbonization” section for `Typography` page
didoo Sep 24, 2025
102d7f3
implemented β€œCarbonization” section for (new) `Color` page
didoo Sep 24, 2025
ab35395
added `@carbon/web-components` as devDependency to Showcase app
didoo Sep 24, 2025
7914664
added `@carbon/[themes|layout|grid|type]` + `@ibm/plex` as devDepende…
didoo Sep 25, 2025
75acfca
refactored `ComparisonGrid` component to add themed background color …
didoo Sep 25, 2025
c4ef3ba
added temporary support for IBM Plex font-family
didoo Sep 25, 2025
91bcfb1
refactored code to support theming for reference web components, base…
didoo Sep 25, 2025
147f8ac
small refactoring
didoo Sep 25, 2025
20e8820
small refactorings
didoo Sep 25, 2025
abf16bf
refactored content organization to have the carbonization pages as st…
didoo Sep 25, 2025
b3f3f45
added carbon web components for comparison on `BadgeCount` page
didoo Oct 7, 2025
40a284d
added carbon web components for comparison on `Button` page
didoo Oct 7, 2025
a1630e8
more small fixes for cleanup and linting
didoo Oct 10, 2025
3278fd3
implemented β€œCarbonization” section for `Form::TextInput` page
didoo Oct 21, 2025
907599b
implemented β€œCarbonization” section for `SegmentedGroup` page
didoo Oct 14, 2025
75d258b
removed link to β€œFoundations > Color” page
didoo Oct 21, 2025
86246f5
Small update to an `rgba` color
didoo Oct 21, 2025
09d0c14
moved theming class in ComparisonGrid from item to item content per c…
didoo Oct 23, 2025
02303db
improved how to apply themed foreground/background colors to content …
didoo Oct 23, 2025
c9eac5d
installed `@carbon/styles` as devDependency to import CSS variables f…
didoo Oct 23, 2025
88c0f53
fixed issue with text color in typography page
didoo Nov 21, 2025
b8b60b3
reorganized carbonized pages so they all live under the `carbonized` …
didoo Oct 23, 2025
5b4510b
prepared the ground for controlling the ShwThemeSwitcher on carbonize…
didoo Oct 23, 2025
50a4fa6
fixed CSS for carbonization pages
didoo Oct 23, 2025
4b90565
updated carbonized typography page to show equivalent/mapped Carbon t…
didoo Oct 24, 2025
e63f799
updated `ShwComparisonGrid` to expose an alternative side-by-side layout
didoo Oct 24, 2025
8e3b5fe
updated some components to take into account the new `hideCarbonLabel…
didoo Oct 24, 2025
b879a52
fixed typescript/glint issue
didoo Oct 24, 2025
6bdd13e
updated a couple of typographic mappings
didoo Oct 24, 2025
510f5df
added yielding of `theme` value in the named blocks of the `Compariso…
didoo Oct 28, 2025
becbfab
introduced `ShwCarbonizationStylePreviewTypography` to facilitate com…
didoo Oct 27, 2025
ba5765e
refactored `carbonization/foundations/color` page and `ShwCarbonizati…
didoo Oct 28, 2025
1e59ba3
updated comparison grid to use `default` for original HDS theming ins…
didoo Nov 7, 2025
b90ed53
small tweak to the `badge` carbonization page
didoo Nov 12, 2025
d3185ec
added logic to the application to lock theme switching when loading a…
didoo Nov 18, 2025
6d4a441
replaced `theme` with `mode` in `ComparisonGrid`
didoo Nov 14, 2025
1a505cf
fixed issue with the β€œdefault” block of the carbonization grid was no…
didoo Nov 20, 2025
cccc7be
fixed issue in the carbonization page for colors
didoo Nov 20, 2025
1bc59bf
some cleanup before code review
didoo Nov 20, 2025
444d2a3
Update showcase/app/components/shw/carbonization/token-preview/color.gts
didoo Nov 21, 2025
c75ad82
updated showcase page for Button carbonization
didoo Nov 18, 2025
41aff58
implemented β€œCarbonization” page for `Modal` component
didoo Nov 25, 2025
7d5cf54
added examples of components with focus state to the carbonization pa…
didoo Nov 27, 2025
224c151
tweaks per code review suggestions
didoo Nov 28, 2025
b459920
implemented β€œCarbonization” page for `Form/RadioCard` component
didoo Nov 28, 2025
932c447
better visual grouping of carbonization pages links in homepage
didoo Dec 1, 2025
f41ea5e
renamed the `page-carbonization` components files and declarations to…
didoo Dec 3, 2025
09df3fb
added `disabled` state to `cds-radio-tile`
didoo Dec 3, 2025
2324b45
avoid duplicate `name` attributes for different radio groups
didoo Dec 3, 2025
d3f3f0d
add missing `{{on "change" this.onChange}}` handled to the `RadioCard…
didoo Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

306 changes: 276 additions & 30 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
import type { TemplateOnlyComponent } from '@ember/component/template-only';
import { pageTitle } from 'ember-page-title';
import { array } from '@ember/helper';

import ShwTextH1 from 'showcase/components/shw/text/h1';
import ShwTextH2 from 'showcase/components/shw/text/h2';
import ShwFlex from 'showcase/components/shw/flex';
import ShwDivider from 'showcase/components/shw/divider';
import ShwCarbonizationComparisonGrid from 'showcase/components/shw/carbonization/comparison-grid';

import { HdsBadgeCount } from '@hashicorp/design-system-components/components';
import {
SIZES,
TYPES,
} from '@hashicorp/design-system-components/components/hds/badge-count/index';

const BadgeCountCarbonizationIndex: TemplateOnlyComponent = <template>
{{pageTitle "BadgeCount - Carbonization"}}

<ShwTextH1>BadgeCount - Carbonization</ShwTextH1>

<section>

<ShwTextH2>Size</ShwTextH2>

<ShwCarbonizationComparisonGrid>
<:theming>
<ShwFlex @direction="column" as |SF|>
{{#each SIZES as |size|}}
<SF.Item>
<HdsBadgeCount @text="3" @size={{size}} />
<HdsBadgeCount @text="99+" @size={{size}} />
</SF.Item>
{{/each}}
</ShwFlex>
</:theming>
<:reference>
<ShwFlex @direction="column" as |SF|>
{{#let (array "sm" "md" "lg") as |SIZES|}}
{{#each SIZES as |size|}}
<SF.Item>
<cds-tag size={{size}}>3</cds-tag>
<cds-tag size={{size}}>99+</cds-tag>
</SF.Item>
{{/each}}
{{/let}}
</ShwFlex>
</:reference>
</ShwCarbonizationComparisonGrid>

<ShwDivider @level={{2}} />

<ShwTextH2>Type</ShwTextH2>

<ShwCarbonizationComparisonGrid>
<:theming>
<ShwFlex @direction="column" as |SF|>
{{#each TYPES as |type|}}
<SF.Item>
<HdsBadgeCount @text="3" @type={{type}} />
<HdsBadgeCount @text="99+" @type={{type}} />
</SF.Item>
{{/each}}
</ShwFlex>
</:theming>
<:reference>
<ShwFlex @direction="column" as |SF|>
{{#let (array "gray" "high-contrast" "outline") as |TYPES|}}
{{#each TYPES as |type|}}
<SF.Item>
<cds-tag type={{type}}>3</cds-tag>
<cds-tag type={{type}}>99+</cds-tag>
</SF.Item>
{{/each}}
{{/let}}
</ShwFlex>
</:reference>
</ShwCarbonizationComparisonGrid>

<ShwDivider @level={{2}} />

<ShwTextH2>Color</ShwTextH2>

<ShwCarbonizationComparisonGrid @label="neutral">
<:theming>
<ShwFlex @direction="column" @gap="0.5rem" as |SF|>
{{#each TYPES as |type|}}
<SF.Item>
<HdsBadgeCount @text="3" @type={{type}} @color="neutral" />
<HdsBadgeCount @text="99+" @type={{type}} @color="neutral" />
</SF.Item>
{{/each}}
</ShwFlex>
</:theming>
<:reference>
<ShwFlex @direction="column" @gap="0.5rem" as |SF|>
<SF.Item>
<cds-tag type="gray">3</cds-tag>
<cds-tag type="gray">99+</cds-tag>
</SF.Item>
<SF.Item>
<cds-tag type="outline">3</cds-tag>
<cds-tag type="outline">99+</cds-tag>
</SF.Item>
</ShwFlex>
</:reference>
</ShwCarbonizationComparisonGrid>

<ShwCarbonizationComparisonGrid @label="neutral-dark-mode">
<:theming>
<ShwFlex @direction="column" @gap="0.5rem" as |SF|>
{{#each TYPES as |type|}}
<SF.Item>
<HdsBadgeCount
@text="3"
@type={{type}}
@color="neutral-dark-mode"
/>
<HdsBadgeCount
@text="99+"
@type={{type}}
@color="neutral-dark-mode"
/>
</SF.Item>
{{/each}}
</ShwFlex>
</:theming>
<:reference>
<cds-tag type="high-contrast">3</cds-tag>
<cds-tag type="high-contrast">99+</cds-tag>
</:reference>
</ShwCarbonizationComparisonGrid>

</section>
</template>;

export default BadgeCountCarbonizationIndex;
Loading