Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
@instructure/canvas-theme
Advanced tools
Readme
A UI component theme for Canvas LMS made by Instructure Inc.
This theme has a 3:1 minimum contrast requirement.
npm install @instructure/canvas-theme
Before mounting (rendering) your React application:
global theming:
import { theme } from '@instructure/canvas-theme'
theme.use()
application level theming:
import { theme } from '@instructure/canvas-theme'
ReactDOM.render(
<InstUISettingsProvider theme={theme}>
<App />
</InstUISettingsProvider>,
element
)
To override the variables:
globally:
import { theme } from '@instructure/canvas-theme'
theme.use({ overrides: { colors: { brand: 'red' } } })
application level:
import { theme } from '@instructure/canvas-theme'
const themeOverrides = { colors: { brand: 'red' } }
ReactDOM.render(
<InstUISettingsProvider theme={{ ...theme, ...themeOverrides }}>
<App />
</InstUISettingsProvider>,
element
)
FAQs
A theme for Canvas LMS made by Instructure Inc.
The npm package @instructure/canvas-theme receives a total of 26,471 weekly downloads. As such, @instructure/canvas-theme popularity was classified as popular.
We found that @instructure/canvas-theme demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 33 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.