-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a page on branding to the guide with examples
- Loading branch information
1 parent
fe867e0
commit 379f42b
Showing
7 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Other design systems | ||
--- | ||
|
||
h1.govuk-heading-xl Other design systems | ||
|
||
p.govuk-body | ||
| While this form builder was designed to work with and closely follow the | ||
GOV.UK Design System, it can be configured to work with others that follow | ||
the same structure and naming conventions. | ||
|
||
p.govuk-body | ||
| In the GOV.UK Design System every CSS class name and data module is | ||
prefixed with <code>govuk</code>. To override this for compatible systems we | ||
can override the <code>brand</code> setting. | ||
|
||
/ TODO: try to find out which other design systems are forks of the GOV.UK DS | ||
and list them here | ||
p.govuk-body | ||
| To reconfigure the builder to work with the #{link_to('NHS Design System', nhs_design_system_link).html_safe}. | ||
add the following snippet to the form builder's initialiser: | ||
|
||
.code-sample | ||
pre | ||
code.highlight.language-ruby | ||
| GOVUKDesignSystemFormBuilder.configure do |conf| | ||
conf.brand = 'nhsuk' | ||
end | ||
|
||
p.govuk-body | ||
| With this setting in place, any application that uses the NHS Design System can use the | ||
form builder. | ||
|
||
figure.image | ||
img src="/images/nhs.png" alt="A NHS-branded form generated with the GOV.UK Design System form builder" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters