0.1.3 • Published 5 years ago
@immunespace/theme v0.1.3
@immunespace/theme
ImmuneSpace theme and styles shared between React modules.
- Creates
core.csswhich can be loaded into ImmuneSpace via the UI. - Defines variables, functions, and mixins which can be used in immunespace to enable consistent styling.
Updating site-wide styles for ImmuneSpace
- Build dev version of this package
npm installnpm run build- This will create
immunespaceFrontendTools/theme/dist/core.css.
- Go to look and feel settings resources in ImmuneSpace: https://www.immunespace.org/admin/adminConsoleResources.view?
- Upload
immunespaceFrontendTools/theme/dist/core.cssas a custom stylesheet.
Loading sass variables
ImmuneSpace theme variables are declared in _immunespace.scss. When the package is built, this file is copied into the dist/ directory. To use these variables in an ImmuneSpace React module or in @immunespace/components:
@immunespace/themeis already installed at the top level of theLabKeyModulesrepo, so you do not need to install it.- Import the variables into an scss file:
@use "~@immunespace/theme/dist/immunespace"; - Use the variables in your scss.
.module-button { background-color: immunespace.$highlight-primary; }
0.1.2-fb-integrate-cognition-styling.1
5 years ago
0.1.2-fb-integrate-cognition-styling.0
5 years ago
0.1.3
5 years ago
0.1.2-fb-integrate-cognition-styling.2
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago