-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Themes set *all* variables in a VarGroup. always. (#631
) * feat: add theme override behaviour configuration * feat: missing vars in themes are set to their default values * fix: resolve the correct __themeName__ for VarGroups
- Loading branch information
Showing
17 changed files
with
884 additions
and
135 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,21 @@ | ||
/** | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
*/ | ||
|
||
import * as stylex from '@stylexjs/stylex'; | ||
import { tokens } from './CardTokens.stylex'; | ||
|
||
export const minorOffset = stylex.createTheme(tokens, { | ||
arrowTransform: 'translateX(5px)', | ||
}); | ||
|
||
export const majorOffset = stylex.createTheme(tokens, { | ||
arrowTransform: 'translateX(10px)', | ||
}); | ||
|
||
export const reset = stylex.createTheme(tokens, {}); |
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
Oops, something went wrong.