Skip to content

Commit 44ec315

Browse files
feat: implement bbbank theme (#2994)
1 parent 17c658a commit 44ec315

53 files changed

Lines changed: 13663 additions & 5794 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/cool-phones-search.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@solid-design-system/styles': minor
3+
---
4+
5+
Add BBBank theme.
6+
- New token `--sd-form-control--disabled-color-text` in `sd-interactive` allows you to change the text color when disabled.
7+

.changeset/new-goats-walk.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@solid-design-system/docs': minor
3+
---
4+
5+
Add BBBank theme.
6+
- Fix `sd-map-marker` icon color.

.changeset/silly-deserts-grab.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
'@solid-design-system/tokens': minor
3+
---
4+
5+
New tokens added:
6+
- --sd-accordion--hover-color-background
7+
- --sd-accordion--open-color-text
8+
- --sd-accordion-color-border
9+
- --sd-breadcrumb--current-color-text
10+
- --sd-button--primary--active-color-background
11+
- --sd-button--primary--disabled-color-background
12+
- --sd-button--secondary--active-color-border
13+
- --sd-button--secondary--default-color-border
14+
- --sd-button--secondary--disabled-color-border
15+
- --sd-button--secondary--hover-color-border
16+
- --sd-button--secondary--hover-color-text
17+
- --sd-button--tertiary--hover-color-text
18+
- --sd-form-control--disabled-color-text
19+
- --sd-form-control--hover-color-background
20+
- --sd-form-control--read-only-color-background
21+
- --sd-radio__checked-height
22+
- --sd-radio__checked-width
23+
- --sd-radio--checked--disabled__icon-color-background
24+
- --sd-switch--unchecked--hover-color-background
25+
- --sd-switch-border-width
26+
- --sd-tab--disabled-color-text

.changeset/upset-ads-knock.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
'@solid-design-system/components': minor
3+
---
4+
5+
Add BBBank theme.
6+
- New token `--sd-accordion--hover-color-background` in `sd-accordion` allows you to change the accordion background color on hover.
7+
- New token `--sd-accordion--open-color-text` in `sd-accordion` allows you to change the accordion summary text color when the accordion is open.
8+
- New token `--sd-accordion-color-border` in `sd-accordion` allows you to change the accordion item divider color.
9+
- New token `--sd-breadcrumb--current-color-text` in `sd-breadcrumb-item` allows you to change the `current` breadcrumb text color.
10+
- New token `--sd-button--primary--active-color-background` in `sd-button` allows you to change the background color of primary buttons when active.
11+
- New token `--sd-button--primary--disabled-color-background` in `sd-button` allows you to change the background color of disabled primary buttons.
12+
- New token `--sd-button--secondary--default-color-border` in `sd-button` allows you to change the border color of secondary buttons.
13+
- New token `--sd-button--secondary--hover-color-border` in `sd-button` allows you to change the border color of secondary buttons on hover.
14+
- New token `--sd-button--secondary--hover-color-text` in `sd-button` allows you to change the text color of secondary buttons on hover.
15+
- New token `--sd-button--secondary--active-color-border` in `sd-button` allows you to change the border color of secondary buttons when active.
16+
- New token `--sd-button--secondary--disabled-color-border` in `sd-button` allows you to change the border color of secondary buttons when disabled.
17+
- New token `--sd-button--tertiary--hover-color-text` in `sd-button` allows you to change the text color of tertiary buttons on hover.
18+
- New token `--sd-form-control--hover-color-background` in `sd-combobox`, `sd-datepicker`, `sd-input`, `sd-select`, and `sd-textarea` allows you to change the component background color on hover.
19+
- New token `--sd-form-control--read-only-color-background` in `sd-datepicker`, `sd-input`, and `sd-textarea` allows you to change the component background color when using the `read-only` property.
20+
- New token `--sd-radio__checked-height` and `--sd-radio__checked-width` in `sd-radio` allow you to change the height or width, respectively, of the radio checked indicator.
21+
- New token `--sd-radio--checked--disabled__icon-color-background` in `sd-radio` allows you to change the radio indicator background color when disabled.
22+
- New token `--sd-switch--unchecked--hover-color-background` in `sd-switch` allows you to change the switch background color on hover when unchecked.
23+
- New token `--sd-switch-border-width` in `sd-switch` allows you to change the switch border width.
24+
- New token `--sd-tab--disabled-color-text` in `sd-tab` allows you to change the disabled tab text color.
25+
- Fix `sd-carousel` chevron color.
26+
- Fix `sd-tag` disabled text color.
27+
- Fix `floating-label` text color in `sd-checkbox`, `sd-combobox`, `sd-datepicker`, `sd-input`, `sd-select`, and `sd-textarea`.
28+
- Add `--sd-choice-control-font-weight` to `sd-navigation-item`, allowing you to change the default font weight.
29+
- Fix icon accent color in the BBBank theme.
30+

packages/components/src/components/accordion/accordion.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ import SolidElement from '../../internal/solid-element';
4545
* @cssproperty --sd-accordion-padding-block - The accordion vertical padding value.
4646
* @cssproperty --sd-accordion__indicator-color - The accordion indicator color.
4747
* @cssproperty --sd-accordion-color-icon-fill - The accordion icon color.
48+
* @cssproperty --sd-accordion--hover-color-background - The accordion hover background color.
49+
* @cssproperty --sd-accordion--open-color-text - The accordion color text when open.
50+
* @cssproperty --sd-accordion-color-border - The accordion color border.
51+
*
4852
* @cssproperty --sd-accordion__chevron-color-text - This custom property is deprecated. Use `--sd-accordion-color-icon-fill`instead.
4953
*/
5054
@customElement('sd-accordion')
@@ -188,12 +192,12 @@ export default class SdAccordion extends SolidElement {
188192

189193
render() {
190194
return html`
191-
<details part="base" class="border-neutral-400">
195+
<details part="base">
192196
<summary
193197
part="header"
194198
id="header"
195199
class=${cx(
196-
'flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-accordion-padding-block focus-visible:focus-outline focus-visible:z-10 relative group transition-colors ease-in-out duration-fast hover:bg-neutral-200'
200+
'flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-accordion-padding-block focus-visible:focus-outline focus-visible:z-10 relative group transition-colors ease-in-out duration-fast hover:sd-accordion--hover-color-background'
197201
)}
198202
aria-expanded=${this.open ? 'true' : 'false'}
199203
aria-controls="content"
@@ -208,7 +212,13 @@ export default class SdAccordion extends SolidElement {
208212
'w-1 sd-accordion__indicator-color absolute left-0 transition-height duration-fast ease-in-out h-[calc(100%-16px)] group-hover:h-full'
209213
)}
210214
></div>
211-
<slot name="summary" part="summary" class="flex flex-auto items-center text-left sd-accordion-color-text"
215+
<slot
216+
name="summary"
217+
part="summary"
218+
class=${cx(
219+
this.open ? 'sd-accordion--open-color-text' : 'sd-accordion-color-text',
220+
'flex flex-auto items-center text-left'
221+
)}
212222
>${this.summary}</slot
213223
>
214224
<span
@@ -244,6 +254,7 @@ export default class SdAccordion extends SolidElement {
244254
}
245255
246256
[part='base'] {
257+
border-color: rgba(var(--sd-accordion-color-border, var(--sd-accordion-color-text)));
247258
border-block-width: var(--sd-accordion-border-width);
248259
}
249260

packages/components/src/components/audio/audio.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import type SdRange from '../range/range';
4444
*
4545
* @cssproperty --sd-audio__slide-bar--inverted-color-background - The background color for the progress slider when the component is inverted.
4646
* @cssproperty --sd-audio__track-bar--inverted-color-background - The background color for the active part of the progress slider when the component is inverted.
47+
*
4748
* @cssproperty --sd-audio__timestamp-color-text - This custom property is deprecated. Use `--sd-color-text-neutral-700` instead.
4849
*/
4950
@customElement('sd-audio')

packages/components/src/components/breadcrumb-item/breadcrumb-item.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import SolidElement from '../../internal/solid-element';
1818
*
1919
* @csspart base - The component's base wrapper.
2020
*
21+
* @cssproperty --sd-breadcrumb--current-color-text - The text color for the current breadcrumb.
22+
*
2123
*/
2224
@customElement('sd-breadcrumb-item')
2325
export default class SdBreadcrumbItem extends SolidElement {
@@ -80,7 +82,7 @@ export default class SdBreadcrumbItem extends SolidElement {
8082
}
8183
8284
:host([current]) sd-link::part(base) {
83-
@apply text-neutral-700;
85+
@apply sd-breadcrumb--current-color-text;
8486
}
8587
8688
:host([current]) sd-link::part(label) {

0 commit comments

Comments
 (0)