Skip to content

Commit 8414a49

Browse files
Quick patch to further consistency
- Quickly added two more rules so some less-inteligent models also get the memo perfectly for the new input checkmarks / icons;
1 parent d56cfa8 commit 8414a49

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

  • plugins/design-bible/skills/design-bible

plugins/design-bible/skills/design-bible/SKILL.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,16 @@ Global design good practices:
6969

7070
* ONLY use "Chart Colors" to compose color palettes to be used for data visualization on charts and graphs. ALWAYS follow good practices of color matching and contrast, like having semi-sat colors as the default usage go-to.
7171

72-
* ALWAYS overwrite the default table header cell's font-weight, so you can apply our own design styles instead.
72+
* ALWAYS overwrite the default table header cell's font-weight, so you can apply your own design styles instead.
7373

7474
* ALWAYS overwrite default visual styles for :hover and :focus states, to ensure that ONLY what's specified on the style catalogue gets applied.
7575

7676
* ALWAYS represent any disabled element, whatever it might be, with 50% opacity, and click actions disabled.
7777

78+
* When adding an icon inside of an input field, ALWAYS place it left of the text element, with spacing-sm between these elements.
79+
80+
* ALWAYS overwrite system default Toggle components, so you can apply your own design styles instead;
81+
7882
## 2. EXTERNAL RESOURCES
7983

8084
### Icon Source & Implementation
@@ -300,7 +304,7 @@ Here are the multiple styles you've specialized yourself in:
300304

301305
- Dropdown Panel:
302306

303-
- dropdown-panel: color-base-black background, radius-md, border-default, vertical spacing from "Trigger Button" spacing-sm;
307+
- dropdown-panel: color-base-black background, radius-md, border-default, vertical spacing from under "Trigger Button" spacing-sm;
304308

305309
- Dropdown Option Item:
306310

@@ -323,6 +327,10 @@ Here are the multiple styles you've specialized yourself in:
323327
- checkbox-checked-hover & checkbox-checked-focus: no changes;
324328
- The checked state, rather than showing a checkmark, shows the inner-element below centralized inside of the checkbox wraper.
325329
- inner-element: 10px x 10px size, color-base-white, radius-xs;
330+
331+
- Checkmark Icon:
332+
333+
NEVER add a checkmark icon to this component when using this catalogue entry;
326334

327335
- Label (text next to the element):
328336

@@ -356,6 +364,7 @@ Here are the multiple styles you've specialized yourself in:
356364
- icon-stroke-width: 1.5px;
357365
- If used inside of full-size-button or medium-size-button, icon-size: 20px x 20px;
358366
- If used on small-size-button, icon-size: 18px x 18px.
367+
- If used inside of an input field, icon-size: 16px x 16px;
359368

360369
- **Inline Alerts:**
361370

@@ -544,7 +553,7 @@ Here are the multiple styles you've specialized yourself in:
544553

545554
- Dropdown Panel:
546555

547-
- dropdown-panel: color-background-page background, radius-md, border-default, vertical spacing from "Trigger Button" spacing-sm;
556+
- dropdown-panel: color-background-page background, radius-md, border-default, vertical spacing from under "Trigger Button" spacing-sm;
548557

549558
- Dropdown Option Item:
550559

@@ -568,7 +577,7 @@ Here are the multiple styles you've specialized yourself in:
568577

569578
- Checkmark Icon:
570579

571-
- checkbox-icon: 10px x 10px size, stroke-width of 1.25px, color-text-primary;
580+
- checkbox-icon: 10px x 10px size, stroke-width of 1.5px, color-text-primary; Always keep it center-aligned;
572581

573582
- Label (text next to the element):
574583

@@ -615,6 +624,7 @@ Here are the multiple styles you've specialized yourself in:
615624
- icon-stroke-width: 1.75px;
616625
- If used inside of full-size-button or medium-size-button, icon-size: 20px x 20px;
617626
- If used on small-size-button, icon-size: 18px x 18px.
627+
- If used inside of an input field, icon-size: 16px x 16px;
618628

619629
- **Inline Alerts:**
620630

0 commit comments

Comments
 (0)