0.1.3 • Published 4 years ago
@immunespace/theme v0.1.3
@immunespace/theme
ImmuneSpace theme and styles shared between React modules.
- Creates
core.css
which 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 install
npm 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.css
as 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/theme
is already installed at the top level of theLabKeyModules
repo, 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
4 years ago
0.1.2-fb-integrate-cognition-styling.0
4 years ago
0.1.3
4 years ago
0.1.2-fb-integrate-cognition-styling.2
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago