-
Notifications
You must be signed in to change notification settings - Fork 0
Adds the Clarity theme files #1
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
ajrbyers
wants to merge
6
commits into
main
Choose a base branch
from
initial
base: main
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 all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
60d9610
feat: initial commit.
ajrbyers 2a2b266
feat: adds repo support from older version
ajrbyers 405390d
chore: remove deprecated templates.
ajrbyers 0ef583d
chore: remove jca css
ajrbyers 614c1f7
Keeps clarity inline with core themes.
ajrbyers 2f8de45
chore: removes some unused css.
ajrbyers 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 |
|---|---|---|
| @@ -1,2 +1,27 @@ | ||
| # clarity | ||
| Clarity is a refreshed version of the clean theme that prioritises accessibility | ||
| # Clarity | ||
|
|
||
| A more modern theme for Janeway with a switchable colour palette system and accessibility improvements over the Clean theme. | ||
|
|
||
| ## Installation | ||
|
|
||
| Clone or copy this theme into `src/themes/`, restart the server, then select **Clarity** under General Settings. | ||
|
|
||
| ## Repository Support | ||
|
|
||
| Clarity includes repository (preprint) front-end templates. To enable them, add a local copy of the `REPOSITORY_THEMES` setting to your `settings.py` that includes `clarity`: | ||
|
|
||
| ```python | ||
| REPOSITORY_THEMES = [ | ||
| "OLH", | ||
| "material", | ||
| "clarity", | ||
| ] | ||
| ``` | ||
|
|
||
| ## Colour Palettes | ||
|
|
||
| Clarity ships with five palettes: `evergreen`, `ocean`, `cardinal` and `midnight` (dark mode). To switch, edit the `@import` line near the top of `clarity.css`: | ||
|
|
||
| ```css | ||
| @import url('/static/clarity/css/evergreen.css'); | ||
| ``` |
Empty file.
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,98 @@ | ||
| :root { | ||
| /* Brand & Theme Colors */ | ||
| --brand-primary: #9b2c2c; | ||
| --brand-secondary: #c05555; | ||
| --text-link-alt: #7c2d2d; | ||
| --focus-shadow: #5a1515; | ||
| --color-success: #5cb85c; | ||
| /* Highlight color (shared across themes) */ | ||
| --highlight-color: #FFEB3B; | ||
|
|
||
| /* Text Colors */ | ||
| /* Must pass WCAG color contrast at --recede-opacity */ | ||
| --text-primary: #212529; | ||
| --text-muted: #747474; | ||
| --text-on-dark: white; | ||
| --text-link: var(--body-text); | ||
| --text-black: #000; | ||
| --text-white: #fff; | ||
| --text-header: var(--text-black); | ||
| --body-text: #525252; | ||
| --nav-text: #636363; | ||
| --nav-text-active: var(--brand-primary); | ||
| --recede-opacity: 70%; | ||
|
|
||
| /* Link Decoration */ | ||
| --link-decoration: underline; | ||
| --link-decoration-hover: underline; | ||
| --nav-link-decoration: none; | ||
| --nav-link-decoration-hover: underline; | ||
| --dropdown-item-decoration: none; | ||
| --dropdown-item-decoration-hover: underline; | ||
| --link-hover-color: var(--brand-primary); | ||
| --link-transition: color 0.2s ease; | ||
|
|
||
| /* Background Colors */ | ||
| --bg-body: #fff; | ||
| --bg-content: white; | ||
| --bg-footer: #FCFCFC; | ||
| --bg-card-alt: #f8f9fa; | ||
| --bg-blockquote: #F0F0F0; | ||
| --bg-overlay: rgba(55, 55, 55, 0.8); | ||
|
|
||
| /* UI State Colors */ | ||
| --color-success: green; | ||
| --color-danger: darkred; | ||
|
|
||
| /* Border Colors */ | ||
| --border-light: #e5e5e5; | ||
| --border-medium: #6c757d; | ||
| --border-gray-200: rgb(229, 231, 235); | ||
|
|
||
| /* Header & Navigation */ | ||
| --header-bg: var(--brand-primary); | ||
| --bg-nav: #fefeff; | ||
|
|
||
| /* Button Colors */ | ||
| --btn-primary-bg: var(--brand-primary); | ||
| --btn-primary-border: var(--brand-primary); | ||
| --btn-primary-text: white; | ||
| --btn-outline-secondary: #6c757d; | ||
|
|
||
| /* Focus & Accessibility */ | ||
| --focus-outline: #F9F9F9; | ||
| --focus-ring-size: 4px; | ||
|
|
||
| /* Typography */ | ||
| --main-font: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; | ||
|
|
||
| /* Spacing */ | ||
| --spacing-xs: 4px; | ||
| --spacing-sm: 8px; | ||
| --spacing-md: 15px; | ||
| --spacing-lg: 20px; | ||
| --spacing-xl: 30px; | ||
|
|
||
| /* Sizes */ | ||
| --border-radius: 3px; | ||
| --border-radius-lg: 2rem; | ||
| --header-height: 120px; | ||
| --footer-height: 70px; | ||
| --card-image-height: 250px; | ||
| --carousel-min-height: 500px; | ||
| --icon-size: 16px; | ||
|
|
||
| /* Transitions */ | ||
| --transition-standard: all 1s ease; | ||
|
|
||
| /* Pagination Colors - Light Mode */ | ||
| --pagination-color: var(--body-text); | ||
| --pagination-bg: var(--bg-content); | ||
| --pagination-border: var(--border-light); | ||
| --pagination-hover-color: var(--brand-primary); | ||
| --pagination-hover-bg: var(--bg-card-alt); | ||
| --pagination-active-color: var(--btn-primary-text); | ||
| --pagination-active-bg: var(--btn-primary-bg); | ||
| --pagination-active-border: var(--btn-primary-border); | ||
| --pagination-disabled-color: var(--text-muted); | ||
| } | ||
Oops, something went wrong.
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.