<repo_name>
<repo_name>
color scheme<repo_name>
colour scheme is ideal for designs that aim to portray strength, warmth, and growth.{ "default-colors-light": { "Accent Colors": { "primary": { "value": "#2dd4bf", "type": "color" }, "secondary": { "value": "#4fb2df", "type": "color" }, "tertiary": { "value": "#c5cbd7", "type": "color" } }, "Background Colors": { "base": { "value": "#e7e7e4", "type": "color" }, "code": { "value": "#f5f5f5", "type": "color" }, "overlay": { "value": "rgba(0, 0, 0, 0.8)", "type": "color" }, "step-1": { "value": "#f3f3f3", "type": "color" }, "step-2": { "value": "#c9cece", "type": "color" } }, "CTA Danger Colors": { "base": { "value": "#1c1b1f", "type": "color" }, "border": { "value": "#1c1b1f", "type": "color" }, "border-disabled": { "value": "#feffff", "type": "color" }, "disabled": { "value": "#1c1b1f", "type": "color" }, "focused": { "value": "#1c1b1f", "type": "color" }, "hover": { "value": "#1c1b1f", "type": "color" }, "pressed": { "value": "#1c1b1f", "type": "color" }, "text": { "value": "#1c1b1f", "type": "color" }, "text-disabled": { "value": "#feffff", "type": "color" } }, "CTA Primary Colors": { "base": { "value": "#2dd4bf", "type": "color" }, "border": { "value": "#2b8074", "type": "color" }, "border-disabled": { "value": "#65b693", "type": "color" }, "disabled": { "value": "rgba(44, 201, 181, 0.1)", "type": "color" }, "focused": { "value": "#2cbfac", "type": "color" }, "hover": { "value": "#2c9f90", "type": "color" }, "pressed": { "value": "#2cc9b5", "type": "color" }, "text": { "value": "#feffff", "type": "color" }, "text-disabled": { "value": "#65b693", "type": "color" } }, "CTA Secondary Colors": { "base": { "value": "#4fb2df", "type": "color" }, "border": { "value": "#209fdb", "type": "color" }, "border-disabled": { "value": "#65b693", "type": "color" }, "disabled": { "value": "rgba(79, 178, 223, 0.1)", "type": "color" }, "focused": { "value": "#4fb1df", "type": "color" }, "hover": { "value": "#40afe1", "type": "color" }, "pressed": { "value": "#4fb2df", "type": "color" }, "text": { "value": "#584b42", "type": "color" }, "text-disabled": { "value": "#65b693", "type": "color" } }, "CTA Tertiary Colors": { "base": { "value": "#556375", "type": "color" }, "border": { "value": "#e2e4e7", "type": "color" }, "border-disabled": { "value": "#65b693", "type": "color" }, "disabled": { "value": "rgba(85, 99, 117, 0.1)", "type": "color" }, "focused": { "value": "#e0e2e6", "type": "color" }, "hover": { "value": "#c7cbd1", "type": "color" }, "pressed": { "value": "#3b4047", "type": "color" }, "text": { "value": "#ffffff", "type": "color" }, "text-disabled": { "value": "#65b693", "type": "color" } }, "Custom Colors": { "eight": { "value": "#d554b3", "type": "color" }, "five": { "value": "#eb57be", "type": "color" }, "four": { "value": "#7a65c7", "type": "color" }, "nine": { "value": "#ec8943", "type": "color" }, "one": { "value": "#ed753a", "type": "color" }, "seven": { "value": "#7564be", "type": "color" }, "six": { "value": "#ef8dd6", "type": "color" }, "ten": { "value": "#da7a4a", "type": "color" }, "three": { "value": "#8fdcf8", "type": "color" }, "two": { "value": "#f3db5f", "type": "color" } }, "Error Colors": { "base": { "value": "#f5bdbb", "type": "color" }, "border": { "value": "#df2b2b", "type": "color" }, "text": { "value": "#c62a21", "type": "color" } }, "Info Colors": { "base": { "value": "#c4edfd", "type": "color" }, "border": { "value": "#205694", "type": "color" }, "text": { "value": "#205694", "type": "color" } }, "Standalone Colors": { "border": { "value": "#434547", "type": "color" }, "border-strong": { "value": "#919192", "type": "color" }, "scrim": { "value": "#007f9b", "type": "color" }, "shadow": { "value": "#007f9b", "type": "color" }, "text": { "value": "#584b42", "type": "color" }, "text-strong": { "value": "#141414", "type": "color" } }, "Success Colors": { "base": { "value": "#e3f0c4", "type": "color" }, "border": { "value": "#3d741f", "type": "color" }, "text": { "value": "#467b28", "type": "color" } }, "Warning Colors": { "base": { "value": "#fbefba", "type": "color" }, "border": { "value": "#966220", "type": "color" }, "text": { "value": "#966220", "type": "color" } } }, "default-colors-dark": { "Accent Colors": { "primary": { "value": "#2dd4bf", "type": "color" }, "secondary": { "value": "#4fb2df", "type": "color" }, "tertiary": { "value": "#c5cbd7", "type": "color" } }, "Background Colors": { "base": { "value": "#18181b", "type": "color" }, "code": { "value": "#21222c", "type": "color" }, "overlay": { "value": "rgba(0, 0, 0, 0.8)", "type": "color" }, "step-1": { "value": "#141414", "type": "color" }, "step-2": { "value": "#585656", "type": "color" } }, "CTA Danger Colors": { "base": { "value": "#1c1b1f", "type": "color" }, "border": { "value": "#1c1b1f", "type": "color" }, "border-disabled": { "value": "#feffff", "type": "color" }, "disabled": { "value": "#1c1b1f", "type": "color" }, "focused": { "value": "#1c1b1f", "type": "color" }, "hover": { "value": "#1c1b1f", "type": "color" }, "pressed": { "value": "#1c1b1f", "type": "color" }, "text": { "value": "#1c1b1f", "type": "color" }, "text-disabled": { "value": "#feffff", "type": "color" } }, "CTA Primary Colors": { "base": { "value": "#2dd4bf", "type": "color" }, "border": { "value": "#2b8074", "type": "color" }, "border-disabled": { "value": "#65b693", "type": "color" }, "disabled": { "value": "rgba(44, 201, 181, 0.1)", "type": "color" }, "focused": { "value": "#2cbfac", "type": "color" }, "hover": { "value": "#2c9f90", "type": "color" }, "pressed": { "value": "#2cc9b5", "type": "color" }, "text": { "value": "#feffff", "type": "color" }, "text-disabled": { "value": "#65b693", "type": "color" } }, "CTA Secondary Colors": { "base": { "value": "#4fb2df", "type": "color" }, "border": { "value": "#209fdb", "type": "color" }, "border-disabled": { "value": "#65b693", "type": "color" }, "disabled": { "value": "rgba(79, 178, 223, 0.1)", "type": "color" }, "focused": { "value": "#4fb1df", "type": "color" }, "hover": { "value": "#40afe1", "type": "color" }, "pressed": { "value": "#4fb2df", "type": "color" }, "text": { "value": "#ffffff", "type": "color" }, "text-disabled": { "value": "#65b693", "type": "color" } }, "CTA Tertiary Colors": { "base": { "value": "#556375", "type": "color" }, "border": { "value": "#e2e4e7", "type": "color" }, "border-disabled": { "value": "#65b693", "type": "color" }, "disabled": { "value": "rgba(85, 99, 117, 0.1)", "type": "color" }, "focused": { "value": "#e0e2e6", "type": "color" }, "hover": { "value": "#c7cbd1", "type": "color" }, "pressed": { "value": "#3b4047", "type": "color" }, "text": { "value": "#ffffff", "type": "color" }, "text-disabled": { "value": "#65b693", "type": "color" } }, "Custom Colors": { "eight": { "value": "#d554b3", "type": "color" }, "five": { "value": "#eb57be", "type": "color" }, "four": { "value": "#7a65c7", "type": "color" }, "nine": { "value": "#ec8943", "type": "color" }, "one": { "value": "#ed753a", "type": "color" }, "seven": { "value": "#7564be", "type": "color" }, "six": { "value": "#ef8dd6", "type": "color" }, "ten": { "value": "#da7a4a", "type": "color" }, "three": { "value": "#8fdcf8", "type": "color" }, "two": { "value": "#f3db5f", "type": "color" } }, "Error Colors": { "base": { "value": "#311b1f", "type": "color" }, "border": { "value": "#df2b2b", "type": "color" }, "text": { "value": "#c62a21", "type": "color" } }, "Info Colors": { "base": { "value": "#15223a", "type": "color" }, "border": { "value": "#205694", "type": "color" }, "text": { "value": "#1f6feb", "type": "color" } }, "Standalone Colors": { "border": { "value": "#434547", "type": "color" }, "border-strong": { "value": "#919192", "type": "color" }, "scrim": { "value": "#007f9b", "type": "color" }, "shadow": { "value": "#007f9b", "type": "color" }, "text": { "value": "#a8a29e", "type": "color" }, "text-strong": { "value": "#ffffff", "type": "color" } }, "Success Colors": { "base": { "value": "#405508ad", "type": "color" }, "border": { "value": "#3d741f", "type": "color" }, "text": { "value": "#479f16", "type": "color" } }, "Warning Colors": { "base": { "value": "#544607a3", "type": "color" }, "border": { "value": "#966220", "type": "color" }, "text": { "value": "#d07f19", "type": "color" } } } }
The importance of colour in a website’s overall look and feel is well known. The right colour scheme can evoke emotions, create visual interest, and direct a user’s attention to specific elements on a page. That’s why the ftd colour scheme framework provides an easy and powerful way to define colour schemes and apply them to your website.
To start, you can choose from existing colour scheme packages or create your own custom colour scheme. To apply a colour cheme package on top of your package, you’ll need to import it into FASTN.ftd
.
Option 1: for documentation templates like doc-site
For example, let’s say you’re using the page component from doc-site
package and want to apply the scheme package on top of it.
To add color scheme to your fastn doc-site. Edit your FASTN.ftd
file and add color scheme dependency into it.
In the below example, we are using <repo_name> color scheme.
Add color scheme dependency into yourFASTN.ftd
file as shown in below example:-- fastn.dependency: <user_name>.github.io/<repo_name>
Now modify FASTN/ds.ftd
module which is already added inside your fastn
package.
<repo_name>
dependency into FASTN/ds.ftd
-- import: <user_name>.github.io/<repo_name>
Change -- component page
colors
property ftd.color-scheme colors: $ftd.default-colors
with ftd.color-scheme colors: $<repo_name>.main
FASTN/ds.ftd
file:-- ftd.color-scheme color-scheme: $ftd.default-colors
-- ftd.color-scheme color-scheme: $<repo_name>.main
Option 2: for custom fastn projects
Add color scheme dependency into yourFASTN.ftd
file as shown in below example:-- fastn.dependency: <user_name>.github.io/<repo_name>
ftd
file and import <repo_name>
into ftd
file-- import: <user_name>.github.io/<repo_name>
Now add $<repo_name>.main
to your component, as shown in below example:
ftd
file, then deploy and test-- example: This is example of types used from `<repo_name>` -- component example: caption title: ftd.color-scheme color-scheme: $<repo_name>.main -- ftd.text: $example.title role: $inherited.types.heading-hero color: $inherited.colors.text -- end: example
<repo_name>
colour scheme.