-
Notifications
You must be signed in to change notification settings - Fork 84
Accessibility options added and Purge css implemented #2573
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
sazedul-haque
wants to merge
28
commits into
4.0.0-dev
Choose a base branch
from
improve-core-utility
base: 4.0.0-dev
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 26 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
9938d69
Add responsive utility config & gated generation
sazedul-haque 1f69b44
Add secondary/exception tokens and theme selector
sazedul-haque f7431b0
Add CVD/high-contrast themes & color tokens
sazedul-haque d85af25
Duplicate color variables removed
sazedul-haque d802d74
Merge branch '4.0.0-dev' into improve-core-utility
sazedul-haque 980fd92
Condition removed from responsive utilities
sazedul-haque 932f5ae
Use single quotes for SCSS @forward imports
sazedul-haque 1158760
Integrate PurgeCSS/PostCSS and split SCSS rules
sazedul-haque b9533ed
Add high-contrast overrides for colorblind themes
sazedul-haque 6b0a02f
Merge branch '4.0.0-dev' into improve-core-utility
sazedul-haque 28e6f84
Theme colors updated
sazedul-haque b1a9207
svg color issue fixed
sazedul-haque 64d844f
purge css condition updated
sazedul-haque 74c5bf9
Accessibility options added to user preferences
sazedul-haque e4ce247
Merge branch '4.0.0-dev' into improve-core-utility
sazedul-haque 48f7ba8
Merge branch '4.0.0-dev' into improve-core-utility
sazedul-haque c6f6521
Update _badges.scss
sazedul-haque 557fe0e
Custom display text and html option support added
sazedul-haque a60cdf7
Update header.php
sazedul-haque 28bc80e
Custom label and value added to font size options
sazedul-haque 51cf03f
Update _avatars.scss
sazedul-haque 50dc6d6
Missing selected style added
sazedul-haque e358795
Color variables updated
sazedul-haque 6f0b35b
Content updated
sazedul-haque 237fbd1
Moved purgecss config to a separate file
sazedul-haque a559890
webp images used instead of png
sazedul-haque 9e67d4f
Unified accessibility sass files added
sazedul-haque bc93ebb
CVD colors updated
sazedul-haque 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
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
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
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,89 @@ | ||
| // Dark Deuteranomaly Theme | ||
| // CVD variant for users with Deuteranomaly (shifted green cone cells — most common form) on a dark background. | ||
| // Replaces green/success tokens with Cyan palette and red/error tokens with Orange palette. | ||
|
|
||
| @use '../tokens' as *; | ||
|
|
||
| [data-tutor-theme='dark-deuteranomaly'] { | ||
| // ============================================================================= | ||
| // SURFACE COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-surface-warning: #{$tutor-gray-750}; | ||
| --tutor-surface-warning-hover: #{$tutor-warning-900}; | ||
| --tutor-surface-success: #{$tutor-cyan-900}; | ||
| --tutor-surface-critical: #{$tutor-orange-900}; | ||
|
|
||
| // ============================================================================= | ||
| // TEXT COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-text-success: #{$tutor-cyan-400}; | ||
| --tutor-text-critical: #{$tutor-orange-600}; | ||
| --tutor-text-critical-hover: #{$tutor-orange-700}; | ||
| --tutor-text-warning: #{$tutor-orange-700}; | ||
| --tutor-text-caution: #{$tutor-yellow-700}; | ||
|
|
||
| // ============================================================================= | ||
| // ICON COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-icon-success-primary: #{$tutor-cyan-500}; | ||
| --tutor-icon-success-secondary: #{$tutor-cyan-600}; | ||
| --tutor-icon-exception4: #{$tutor-warning-400}; | ||
| --tutor-icon-caution: #{$tutor-yellow-500}; | ||
| --tutor-icon-critical: #{$tutor-orange-600}; | ||
| --tutor-icon-critical-hover: #{$tutor-orange-700}; | ||
| --tutor-icon-warning: #{$tutor-orange-700}; | ||
| --tutor-icon-warning-secondary: #{$tutor-yellow-500}; | ||
|
|
||
| // ============================================================================= | ||
| // BUTTON COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-button-destructive: #{$tutor-orange-600}; | ||
| --tutor-button-destructive-hover: #{$tutor-orange-700}; | ||
| --tutor-button-destructive-focused: #{$tutor-orange-600}; | ||
| --tutor-button-destructive-soft: #{$tutor-orange-100}; | ||
| --tutor-button-destructive-soft-hover: #{$tutor-orange-200}; | ||
| --tutor-button-destructive-soft-focused: #{$tutor-orange-100}; | ||
| --tutor-button-success: #{$tutor-cyan-500}; | ||
| --tutor-button-success-hover: #{$tutor-cyan-600}; | ||
| --tutor-button-success-focused: #{$tutor-cyan-500}; | ||
|
|
||
| // ============================================================================= | ||
| // BORDER COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-border-warning: #{$tutor-yellow-300}; | ||
| --tutor-border-warning-secondary: #{$tutor-orange-700}; | ||
| --tutor-border-warning-tertiary: #{$tutor-orange-300}; | ||
| --tutor-border-success: #{$tutor-cyan-300}; | ||
| --tutor-border-success-secondary: #{$tutor-cyan-600}; | ||
| --tutor-border-error: #{$tutor-orange-300}; | ||
| --tutor-border-error-secondary: #{$tutor-orange-700}; | ||
| --tutor-border-error-tertiary: #{$tutor-orange-400}; | ||
|
|
||
| // ============================================================================= | ||
| // ACTION COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-actions-success-primary: #{$tutor-cyan-500}; | ||
| --tutor-actions-success-secondary: #{$tutor-cyan-400}; | ||
| --tutor-actions-success-tertiary: #{$tutor-gray-700}; | ||
| --tutor-actions-success-exception: #{$tutor-cyan-950}; | ||
| --tutor-actions-warning-primary: #{$tutor-orange-300}; | ||
| --tutor-actions-warning-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-warning-tertiary: #{$tutor-orange-50}; | ||
| --tutor-actions-warning-exception: #{$tutor-orange-50}; | ||
| --tutor-actions-critical-primary: #{$tutor-orange-600}; | ||
| --tutor-actions-critical-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-caution: #{$tutor-yellow-500}; | ||
| --tutor-actions-caution-secondary: #{$tutor-yellow-100}; | ||
| } | ||
|
|
||
| [data-tutor-theme='dark-deuteranomaly'][data-tutor-contrast='high'] { | ||
| --tutor-actions-success-tertiary: #{$tutor-gray-700}; | ||
| --tutor-actions-warning-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-critical-secondary: #{$tutor-gray-700}; | ||
| } |
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,89 @@ | ||
| // Dark Deuteranopia Theme | ||
| // CVD variant for users with Deuteranopia (absent green cone cells) on a dark background. | ||
| // Replaces green/success tokens with Cyan palette and red/error tokens with Orange palette. | ||
|
|
||
| @use '../tokens' as *; | ||
|
|
||
| [data-tutor-theme='dark-deuteranopia'] { | ||
| // ============================================================================= | ||
| // SURFACE COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-surface-warning: #{$tutor-gray-750}; | ||
| --tutor-surface-warning-hover: #{$tutor-warning-900}; | ||
| --tutor-surface-success: #{$tutor-cyan-900}; | ||
| --tutor-surface-critical: #{$tutor-orange-900}; | ||
|
|
||
| // ============================================================================= | ||
| // TEXT COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-text-success: #{$tutor-cyan-400}; | ||
| --tutor-text-critical: #{$tutor-orange-500}; | ||
| --tutor-text-critical-hover: #{$tutor-orange-600}; | ||
| --tutor-text-warning: #{$tutor-orange-600}; | ||
| --tutor-text-caution: #{$tutor-yellow-600}; | ||
|
|
||
| // ============================================================================= | ||
| // ICON COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-icon-success-primary: #{$tutor-cyan-600}; | ||
| --tutor-icon-success-secondary: #{$tutor-cyan-700}; | ||
| --tutor-icon-exception4: #{$tutor-warning-400}; | ||
| --tutor-icon-caution: #{$tutor-yellow-500}; | ||
| --tutor-icon-critical: #{$tutor-orange-500}; | ||
| --tutor-icon-critical-hover: #{$tutor-orange-600}; | ||
| --tutor-icon-warning: #{$tutor-orange-700}; | ||
| --tutor-icon-warning-secondary: #{$tutor-yellow-500}; | ||
|
|
||
| // ============================================================================= | ||
| // BUTTON COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-button-destructive: #{$tutor-orange-600}; | ||
| --tutor-button-destructive-hover: #{$tutor-orange-700}; | ||
| --tutor-button-destructive-focused: #{$tutor-orange-600}; | ||
| --tutor-button-destructive-soft: #{$tutor-orange-100}; | ||
| --tutor-button-destructive-soft-hover: #{$tutor-orange-200}; | ||
| --tutor-button-destructive-soft-focused: #{$tutor-orange-100}; | ||
| --tutor-button-success: #{$tutor-cyan-600}; | ||
| --tutor-button-success-hover: #{$tutor-cyan-700}; | ||
| --tutor-button-success-focused: #{$tutor-cyan-500}; | ||
|
|
||
| // ============================================================================= | ||
| // BORDER COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-border-warning: #{$tutor-yellow-300}; | ||
| --tutor-border-warning-secondary: #{$tutor-orange-700}; | ||
| --tutor-border-warning-tertiary: #{$tutor-orange-300}; | ||
| --tutor-border-success: #{$tutor-cyan-400}; | ||
| --tutor-border-success-secondary: #{$tutor-cyan-600}; | ||
| --tutor-border-error: #{$tutor-orange-400}; | ||
| --tutor-border-error-secondary: #{$tutor-orange-600}; | ||
| --tutor-border-error-tertiary: #{$tutor-orange-300}; | ||
|
|
||
| // ============================================================================= | ||
| // ACTION COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-actions-success-primary: #{$tutor-cyan-500}; | ||
| --tutor-actions-success-secondary: #{$tutor-cyan-400}; | ||
| --tutor-actions-success-tertiary: #{$tutor-gray-700}; | ||
| --tutor-actions-success-exception: #{$tutor-cyan-950}; | ||
| --tutor-actions-warning-primary: #{$tutor-orange-300}; | ||
| --tutor-actions-warning-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-warning-tertiary: #{$tutor-orange-50}; | ||
| --tutor-actions-warning-exception: #{$tutor-orange-50}; | ||
| --tutor-actions-critical-primary: #{$tutor-orange-600}; | ||
| --tutor-actions-critical-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-caution: #{$tutor-yellow-500}; | ||
| --tutor-actions-caution-secondary: #{$tutor-yellow-100}; | ||
| } | ||
|
|
||
| [data-tutor-theme='dark-deuteranopia'][data-tutor-contrast='high'] { | ||
| --tutor-actions-success-tertiary: #{$tutor-gray-700}; | ||
| --tutor-actions-warning-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-critical-secondary: #{$tutor-gray-700}; | ||
| } |
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,46 @@ | ||
| // Dark High-Contrast Theme | ||
| // Accessibility variant with increased contrast ratios for users who need | ||
| // higher foreground/background differentiation in dark mode. | ||
|
|
||
| @use '../tokens' as *; | ||
|
|
||
| [data-tutor-theme^='dark'][data-tutor-contrast='high'] { | ||
| // ============================================================================= | ||
| // SURFACE COLORS | ||
| // ============================================================================= | ||
| --tutor-surface-warning: #{$tutor-gray-750}; | ||
|
|
||
| // ============================================================================= | ||
| // TEXT COLORS | ||
| // ============================================================================= | ||
| --tutor-text-primary: #{$tutor-gray-100}; | ||
| --tutor-text-secondary: #{$tutor-gray-50}; | ||
| --tutor-text-subdued: #{$tutor-gray-50}; | ||
| --tutor-text-disabled: #{$tutor-gray-300}; | ||
|
|
||
| // ============================================================================= | ||
| // BORDER COLORS | ||
| // ============================================================================= | ||
| --tutor-border-idle: #{$tutor-gray-400}; | ||
| --tutor-border-hover: #{$tutor-gray-300}; | ||
| --tutor-border-tertiary: #{$tutor-gray-300}; | ||
| --tutor-border-brand: #{$tutor-brand-200}; | ||
| --tutor-border-brand-secondary: #{$tutor-brand-800}; | ||
| --tutor-border-brand-tertiary: #{$tutor-brand-700}; | ||
|
|
||
| // ============================================================================= | ||
| // ICON COLORS | ||
| // ============================================================================= | ||
| --tutor-icon-idle: #{$tutor-gray-300}; | ||
| --tutor-icon-hover: #{$tutor-gray-1}; | ||
| --tutor-icon-secondary: #{$tutor-gray-500}; | ||
| --tutor-icon-subdued: #{$tutor-gray-600}; | ||
| --tutor-icon-disabled: #{$tutor-gray-600}; | ||
|
|
||
| // ============================================================================= | ||
| // ACTION COLORS | ||
| // ============================================================================= | ||
| --tutor-actions-success-tertiary: #{$tutor-gray-700}; | ||
| --tutor-actions-warning-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-critical-secondary: #{$tutor-gray-700}; | ||
| } |
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,89 @@ | ||
| // Dark Protanopia Theme | ||
| // CVD variant for users with Protanopia (absent red cone cells) on a dark background. | ||
| // Replaces green/success tokens with Cyan palette and red/error tokens with Orange palette. | ||
|
|
||
| @use '../tokens' as *; | ||
|
|
||
| [data-tutor-theme='dark-protanopia'] { | ||
| // ============================================================================= | ||
| // SURFACE COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-surface-warning: #{$tutor-gray-750}; | ||
| --tutor-surface-warning-hover: #{$tutor-warning-900}; | ||
| --tutor-surface-success: #{$tutor-cyan-900}; | ||
| --tutor-surface-critical: #{$tutor-orange-900}; | ||
|
|
||
| // ============================================================================= | ||
| // TEXT COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-text-success: #{$tutor-cyan-400}; | ||
| --tutor-text-critical: #{$tutor-orange-600}; | ||
| --tutor-text-critical-hover: #{$tutor-orange-700}; | ||
| --tutor-text-warning: #{$tutor-orange-700}; | ||
| --tutor-text-caution: #{$tutor-yellow-700}; | ||
|
|
||
| // ============================================================================= | ||
| // ICON COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-icon-success-primary: #{$tutor-cyan-500}; | ||
| --tutor-icon-success-secondary: #{$tutor-cyan-600}; | ||
| --tutor-icon-exception4: #{$tutor-warning-400}; | ||
| --tutor-icon-caution: #{$tutor-yellow-500}; | ||
| --tutor-icon-critical: #{$tutor-orange-600}; | ||
| --tutor-icon-critical-hover: #{$tutor-orange-700}; | ||
| --tutor-icon-warning: #{$tutor-orange-700}; | ||
| --tutor-icon-warning-secondary: #{$tutor-yellow-500}; | ||
|
|
||
| // ============================================================================= | ||
| // BUTTON COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-button-destructive: #{$tutor-orange-600}; | ||
| --tutor-button-destructive-hover: #{$tutor-orange-700}; | ||
| --tutor-button-destructive-focused: #{$tutor-orange-600}; | ||
| --tutor-button-destructive-soft: #{$tutor-orange-100}; | ||
| --tutor-button-destructive-soft-hover: #{$tutor-orange-200}; | ||
| --tutor-button-destructive-soft-focused: #{$tutor-orange-100}; | ||
| --tutor-button-success: #{$tutor-cyan-500}; | ||
| --tutor-button-success-hover: #{$tutor-cyan-600}; | ||
| --tutor-button-success-focused: #{$tutor-cyan-500}; | ||
|
|
||
| // ============================================================================= | ||
| // BORDER COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-border-warning: #{$tutor-yellow-300}; | ||
| --tutor-border-warning-secondary: #{$tutor-orange-700}; | ||
| --tutor-border-warning-tertiary: #{$tutor-orange-300}; | ||
| --tutor-border-success: #{$tutor-cyan-300}; | ||
| --tutor-border-success-secondary: #{$tutor-cyan-600}; | ||
| --tutor-border-error: #{$tutor-orange-300}; | ||
| --tutor-border-error-secondary: #{$tutor-orange-700}; | ||
| --tutor-border-error-tertiary: #{$tutor-orange-400}; | ||
|
|
||
| // ============================================================================= | ||
| // ACTION COLORS | ||
| // ============================================================================= | ||
|
|
||
| --tutor-actions-success-primary: #{$tutor-cyan-500}; | ||
| --tutor-actions-success-secondary: #{$tutor-cyan-400}; | ||
| --tutor-actions-success-tertiary: #{$tutor-gray-700}; | ||
| --tutor-actions-success-exception: #{$tutor-cyan-950}; | ||
| --tutor-actions-warning-primary: #{$tutor-orange-300}; | ||
| --tutor-actions-warning-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-warning-tertiary: #{$tutor-orange-50}; | ||
| --tutor-actions-warning-exception: #{$tutor-orange-50}; | ||
| --tutor-actions-critical-primary: #{$tutor-orange-600}; | ||
| --tutor-actions-critical-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-caution: #{$tutor-yellow-500}; | ||
| --tutor-actions-caution-secondary: #{$tutor-yellow-100}; | ||
| } | ||
|
|
||
| [data-tutor-theme='dark-protanopia'][data-tutor-contrast='high'] { | ||
| --tutor-actions-success-tertiary: #{$tutor-gray-700}; | ||
| --tutor-actions-warning-secondary: #{$tutor-gray-700}; | ||
| --tutor-actions-critical-secondary: #{$tutor-gray-700}; | ||
| } |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here