Ouds Theme Contract serves as the interface between the library and custom themes. It allows developers to create and manage themes by overriding semantic and component tokens.
- Provides the
OudsThemeContractinterface for implementing custom themes. - Includes helpers to manage themes effectively.
- Supports automatic generation of token identifiers via Tokenator.
To use Ouds Theme Contract, add it as a dependency in your pubspec.yaml file.
dependencies:
ouds_theme_contract: ^2.1.0- Package ouds_theme_contract/theme: Contains the
OudsThemeContractinterface that can be implemented to create a new theme by overriding semantic and component tokens. - Package ouds_theme_contract/theme/tokens: Contains key token files which are token identifiers that should be used in your app to get a token value. These files are automatically generated by Tokenator.
- Package ouds_theme_contract/theme/tokens/components: Contains specific component tokens coming from Figma and automatically generated by Tokenator.
- Package ouds_theme_contract/theme/tokens/semantic: Contains semantic tokens coming from Figma and automatically generated by Tokenator.
- ouds_core: Contains the Brand components.
- ouds_global_raw_tokens: Contains the token constants.
- ouds_theme_orange: Contains the theme for the Orange brand.
- ouds_theme_sosh: Contains the theme for the Sosh brand.
Code released under the MIT License. For images and other assets, please refer to the NOTICE.txt.