Skip to content

Commit 38b465f

Browse files
committed
make use of the field-guide color pallet instead of the local one
1 parent 100ad49 commit 38b465f

File tree

6 files changed

+32
-234
lines changed

6 files changed

+32
-234
lines changed

docs/concepts/colours.md

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,42 @@ Website elements like text and icons should meet accesibility standards when use
1010

1111
The primary palette is applied across every page of the website and contains the brand, accent and neutral colors. The purpose of the primary palette is to keep uniformity across all pages while encouraging accessibility best practices.
1212

13-
<div class="layout">
14-
<ColorPallet class="lg:col-2" @color="#E04E39" @name="Brand" @variable="--color-brand" @class-name="bg-brand"/>
15-
<ColorPallet class="lg:col-2" @color="#FFFFFF" @name="White" @variable="--color-white" @class-name="bg-dark" />
16-
<ColorPallet class="lg:col-2" @color="#F4F6F8" @name="Gray 100" @variable="--color-gray-100" @class-name="bg-dark" />
17-
<ColorPallet class="lg:col-2" @color="#EBEEF2" @name="Gray 200" @variable="--color-gray-200" @class-name="bg-dark" />
18-
<ColorPallet class="lg:col-2" @color="#DCE0E6" @name="Gray 300" @variable="--color-gray-300" @class-name="bg-dark" />
19-
<ColorPallet class="lg:col-2" @color="#BEC4CC" @name="Gray 400" @variable="--color-gray-400" @class-name="bg-dark" />
20-
<ColorPallet class="lg:col-2" @color="#8F949F" @name="Gray 500" @variable="--color-gray-500" @class-name="bg-dark" />
21-
<ColorPallet class="lg:col-2" @color="#6A707A" @name="Gray 600" @variable="--color-gray-600" @class-name="bg-light" />
22-
<ColorPallet class="lg:col-2" @color="#42474F" @name="Gray 700" @variable="--color-gray-700" @class-name="bg-light" />
23-
<ColorPallet class="lg:col-2" @color="#2B2D34" @name="Gray 800" @variable="--color-gray-800" @class-name="bg-light" />
24-
<ColorPallet class="lg:col-2" @color="#1C1E24" @name="Gray 900" @variable="--color-gray-900" @class-name="bg-light" />
25-
<ColorPallet class="lg:col-2" @color="#000000" @name="Black" @variable="--color-black" @class-name="bg-light" />
13+
<!-- fix for styleguide selector in the colour pallets -->
14+
<style>
15+
.text-xl + * {
16+
margin-top: 0;
17+
}
18+
</style>
19+
20+
<div class="layout mt-3">
21+
{{#each (array
22+
(hash color="#E04E39" name="Brand" variable="--color-brand" className="bg-brand")
23+
(hash color="#FFFFFF" name="White" variable="--color-white")
24+
(hash color="#F4F6F8" name="Gray 100" variable="--color-gray-100")
25+
(hash color="#EBEEF2" name="Gray 200" variable="--color-gray-200")
26+
(hash color="#DCE0E6" name="Gray 300" variable="--color-gray-300")
27+
(hash color="#BEC4CC" name="Gray 400" variable="--color-gray-400")
28+
(hash color="#8F949F" name="Gray 500" variable="--color-gray-500")
29+
(hash color="#6A707A" name="Gray 600" variable="--color-gray-600")
30+
(hash color="#42474F" name="Gray 700" variable="--color-gray-700")
31+
(hash color="#2B2D34" name="Gray 800" variable="--color-gray-800")
32+
(hash color="#1C1E24" name="Gray 900" variable="--color-gray-900")
33+
(hash color="#000000" name="Black" variable="--color-black")
34+
) as |item|}}
35+
<ColorPallet
36+
class="lg:col-2"
37+
@textClasses={{array 'text-sm' 'text-base' 'text-md' 'text-lg' 'text-xl'}}
38+
@textColorClasses={{array '' 'text-light'}}
39+
@color={{item.color}}
40+
@name={{item.name}}
41+
@variable={{item.variable}}
42+
@class-name={{item.className}}
43+
/>
44+
{{/each}}
2645
</div>
2746

2847
## Secondary Colors
2948

3049
The secondary palette is applied to UI elements and it's not part of the base colors. The purpose of the secondary palette is to ensure the readability, usability, and accessibility of all UI elements and enhance the communication of actions, changes in state, or errors.
3150

3251
The secondary palette is yet to be defined.
33-
34-
### Examples
35-
36-
#### Applying a background color to the card component
37-
38-
<div class="card bg-info">
39-
<div class="card-content">
40-
Do you have questions? Run into an issue or a bug? Get support from the community. A list of chat rooms, forums, and more are available here.
41-
</div>
42-
</div>

tests/dummy/app/components/color-pallet.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

tests/dummy/app/styles/app.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import 'color-pallet.css';
2-
31
.self-executing-code-block {
42
margin-bottom: 2rem;
53
}

tests/dummy/app/styles/color-pallet.css

Lines changed: 0 additions & 61 deletions
This file was deleted.

tests/dummy/app/templates/.gitignore

Whitespace-only changes.

tests/dummy/app/templates/components/color-pallet.hbs

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)