Comments (2)
makeStyles
that is imported from Fluent is actually a direct re-export of Griffel. This library is also owned by the Fluent UI team.
The reason that makeStyles
does not support any runtime parameters/arguments is because of ahead of time compilation. This means that styles can be compiled at build time to avoid any computation cost at runtime.
The theming of Fluent UI is based on CSS variables which is completely independency of any third party. You can see an example of styling using Fluent UI
import { makeStyles, tokens } from '@fluentui/react-components';
const useStyles = makeStyles({
root: { display: 'flex' },
rootPrimary: { color: tokens.colorNeutralForeground3 },
});
tokens
are completely independent and there is absolutely no need for it to be used. Can you please provide more details on what 3rd party libraries you would like to remove as a dependency?
from fluentui.
I wasn't aware of the tokens
object. Thank you so much!
from fluentui.
Related Issues (20)
- https://uifabricicons.azurewebsites.net/ is not serving icon packages HOT 1
- [Bug]: SearchBox needs SearchBoxChangeEvent exported
- [Bug]: Unable to execute component test with playwright HOT 5
- [Bug]: DataGrid does not work with noNativeElements and focusMode "composite"
- [Bug]: (React-Charting) Bump all d3 dependencies to highest major version HOT 1
- [Feature]: add custom style hooks support only to stable packages
- [Bug]: Overflow creates React state update on an unmounted component warning when unmounting HOT 1
- [Bug]: @fluentui/web-components "InternalError: too much recursion" binary-search.js HOT 2
- Bugs arising from migration to d3's scaleUtc utility
- [Bug]: Tooltip can't disappear in Dropdown HOT 2
- [Bug]: Tooltip of "Current value is xx/xx" in Gaugechart is hardcode, which could not be localized. HOT 1
- [Bug]: Tooltip jest test regression after react 18 fix if `autoMount` set to true HOT 1
- [Bug]: Menu autosize positioning does not apply boundary padding vertically HOT 2
- [Bug]: Tab content slot calls ref with reserved space element
- [Bug]: Keyboard focus is moving out of the modal popup in share point site HOT 15
- [Bug]: InteractiveTag brand appearance needs better contrast HOT 1
- [Bug]: fluent-badge content alignment HOT 1
- Chart color does not show in single value callout. HOT 3
- [Bug]: FluentProvider pulls in 2 megs of things to parse with 1 line of code
- [Bug]: Dropdown `value` set but not displayed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentui.