-
Notifications
You must be signed in to change notification settings - Fork 3
doc: colors documentation for dbux3 #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
annsch
wants to merge
10
commits into
dbux-3
Choose a base branch
from
feat-colors-docs
base: dbux-3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1967c1a
docs: colors v3
annsch b99dbd2
Update intro.hbs
mfranzke 0805b20
chore: optimize the color path, filename and dimensions
mfranzke f8b8fcf
docs: colors intro page
annsch a3aa9b6
docs: placeholders and utility color classes
annsch a5b9fac
docs: reorder navigation for colors
annsch 8cb4586
docs: set img to auto
annsch 13a348b
refactor: colors docs optimization (#99)
mfranzke 6f61fc0
docs: added typography styles
annsch 398468a
chore: clarity
mfranzke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
.DO-NOT-COPY-THIS-CLASS-example-color-container { | ||
width: 100%; | ||
padding: 2rem; | ||
background-color: green; | ||
} |
This file contains hidden or 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,18 @@ | ||
main { | ||
figure { | ||
margin: 0; | ||
display: grid; | ||
grid-auto-columns: 50% 50%; | ||
grid: 1fr 1fr; | ||
grid-gap: 1rem; | ||
grid-auto-flow: column; | ||
} | ||
|
||
img { | ||
width: 100%; | ||
max-width: 100%; | ||
border-radius: 0.875rem; | ||
box-shadow: rgb(60 64 67 / 30%) 0px 1px 2px 0px, | ||
rgb(60 64 67 / 15%) 0px 1px 3px 1px; | ||
} | ||
} |
File renamed without changes.
This file contains hidden or 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,29 @@ | ||
<main class="rea-main"> | ||
<h1>Color System</h1> | ||
<p>DB UX Design Guidelines 3.0 introduce a complete new set of color variables that follow some rules to work with.</p> | ||
<p>Each accent color (primary, secondary, information, etc.) is provided in a group of four compatible colors of different tones for pairing, defining emphasis, and visual expression. </p> | ||
<p>Accent colors primary, secondary, information, warning, error, critical and sucess are following the same pattern of a 4-color group. </p> | ||
|
||
<h2>Color Scheme – Primary (Example)</h2> | ||
<p>Each defined color has an interactive mode which means that colors for hover and pressed states are defined.</p> | ||
<ul> | ||
<li><b>Primary</b> – base key color</li> | ||
<li><b>Primary Background-Light</b> – background color for current key color. Only used for backrounds.</li> | ||
<li><b>Primary Background-Transparent</b> - Transparent or semi transparent backgrounds for current key color, e.g. used for form field backgrounds.</li> | ||
<li><b>On Primary</b> – is applied to content (icons, text, etc.) that sits on top of primary</li> | ||
<li><b>On Primary Background</b> – is applied to content (icons, text, etc.) that sits on top of primary background colors (background light or transparent).</li> | ||
<li><b>On Primary Background Weak</b> – is applied to content (icons, text, etc.) that sits on top of primary background colors (background light or transparent) and is a variant to weaken content on primary backgrounds. | ||
</li> | ||
</ul> | ||
|
||
<h3>Color Scheme Illustration</h3> | ||
<figure class="color-scheme-illustration"> | ||
<img src='../../images/Primary.png' alt='Color Scheme Example'> | ||
<img src='../../images/Primary-Background.png' alt='Color Scheme Example'> | ||
</figure> | ||
|
||
<h2>Neutral Color Scheme</h2> | ||
<p>The neutral color palette exists of 6 color variants. In contrast to key colors like primary, neutral colors can only be used for backgrounds.</p> | ||
|
||
<img src='../../images/neutral-palette.png' alt='Neutral Color Scheme'> | ||
</main> |
This file contains hidden or 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,6 @@ | ||
--- | ||
title: Intro | ||
order: -1 | ||
--- | ||
|
||
The defined color palette specifies colors in three dimensions: background, foreground (in most cases text) and specific states as :hover and :active. |
This file contains hidden or 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,14 @@ | ||
|
||
<main> | ||
<h3> | ||
The defined color palette specifies colors in three dimensions: background, foreground (in most cases text) and specific states as :hover and :active. | ||
</h3> | ||
|
||
<div class="DO-NOT-COPY-THIS-CLASS-example-color-container db-primary"> | ||
|
||
<a href="#">Link auf Hintergrund</a><br /> | ||
<p>Text auf Hintergrund</p> | ||
<small class="db-weak">Weak Text</small> | ||
</div> | ||
|
||
</main> |
This file contains hidden or 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,3 @@ | ||
--- | ||
title: Usage | ||
--- |
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.