How to use the @instructure/ui-themes/lib/canvas.default.use function in @instructure/ui-themes

To help you get started, we’ve selected a few @instructure/ui-themes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github instructure / instructure-ui / packages / ui-core / tests.bundle.js View on Github external
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

const Testbed = require('@instructure/ui-testbed')

global.Testbed = Testbed
Testbed.init()

const theme = require('@instructure/ui-themes/lib/canvas').default
theme.use({ accessible: true })

const testsContext = require.context('./src', true, /\.test\.js$/)
testsContext.keys().forEach(testsContext)

@instructure/ui-themes

A library of instructure themes

MIT
Latest version published 3 days ago

Package Health Score

87 / 100
Full package analysis

Similar packages