Skip to content
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

[FEAT] New Theming Functions #3555

Open
2 tasks
xelaint opened this issue Mar 10, 2025 · 0 comments
Open
2 tasks

[FEAT] New Theming Functions #3555

xelaint opened this issue Mar 10, 2025 · 0 comments
Assignees
Labels
package: design @daffodil/design
Milestone

Comments

@xelaint
Copy link
Member

xelaint commented Mar 10, 2025

💡 Feature request

Feature Name

New Theming Functions

The Desired Behavior

Introduce 3 new functions:

  • daff-get-palette
    • Retrieve neutral from core within daff-get-palette
@function daff-get-palette($theme, $palette){
   @if($palette === 'neutral' {
    return core.daff-map-get($theme, 'core', $palette);  
   }
   return core.daff-map-get($theme, $palette);
}
  • daff-get-core-color
$base: theme.daff-get-core-color($theme, 'base');
$base-contrast: theme.daff-get-core-color($theme, 'base-contrast');
  • daff-get-theme-type

Your Use Case

Prior Work

Environment


Daffodil version: X.Y.Z
Angular version: X.Y.Z 

 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

@xelaint xelaint added the package: design @daffodil/design label Mar 10, 2025
@xelaint xelaint added this to the Daffodil v1.0 milestone Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: design @daffodil/design
Projects
None yet
Development

No branches or pull requests

2 participants