9.0.0-alpha.23 • Published 1 day ago

@fluentui/react-theme-sass v9.0.0-alpha.23

Weekly downloads
-
License
MIT
Repository
github
Last release
1 day ago

@fluentui/react-theme-sass

React Theme Sass for Fluent UI React

SASS variables referencing react-theme design tokens injected to DOM by react-provider.

Usage

  1. Instantiate a FluentProvider to inject a Fluent theme into a DOM:
import React from 'react';
import ReactDOM from 'react-dom';
import { FluentProvider, teamsLightTheme } from '@fluentui/react-components';
import App from './App';
ReactDOM.render(
  <FluentProvider theme={teamsLightTheme}>
    <App />
  </FluentProvider>,
  document.getElementById('root'),
);
  1. In SCSS styles you can import SCSS variables from @fluentui/react-theme-sass and use them in the styles:
@import '~@fluentui/react-theme-sass';
.brandedElement {
  color: $colorBrandForeground1;
  background: $colorBrandBackground;
  border-radius: $borderRadiusLarge;
}

⚠ This package does not export any Javascript code.️

9.0.0-alpha.23

2 months ago

9.0.0-alpha.22

2 months ago

9.0.0-alpha.21

2 months ago

9.0.0-alpha.18

8 months ago

9.0.0-alpha.15

10 months ago

9.0.0-alpha.16

9 months ago

9.0.0-alpha.14

10 months ago

9.0.0-alpha.19

7 months ago

9.0.0-alpha.20

6 months ago

9.0.0-alpha.13

11 months ago

9.0.0-alpha.11

1 year ago

9.0.0-alpha.12

1 year ago

9.0.0-alpha.10

1 year ago

9.0.0-alpha.9

1 year ago

9.0.0-alpha.8

1 year ago

9.0.0-alpha.7

1 year ago

9.0.0-alpha.6

1 year ago

9.0.0-alpha.5

1 year ago

9.0.0-alpha.4

2 years ago

9.0.0-alpha.3

2 years ago

9.0.0-alpha.2

2 years ago

9.0.0-alpha.1

2 years ago