当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript getMuiTheme.default函数代码示例

本文整理汇总了TypeScript中material-ui/styles/getMuiTheme.default函数的典型用法代码示例。如果您正苦于以下问题:TypeScript default函数的具体用法?TypeScript default怎么用?TypeScript default使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了default函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: getMuiTheme

import {grey900} from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';

const muiTheme = getMuiTheme({
  palette: {
    textColor: grey900,
  },
  appBar: {
    height: 50,
  },
});
export default muiTheme;
开发者ID:coderoad,项目名称:builder-coderoad,代码行数:12,代码来源:theme.ts

示例2: getMuiTheme

import {
  cyan500, cyan700,
  pinkA200,
  grey100, grey300, grey400, grey500,
  white, darkBlack, fullBlack
} from 'material-ui/styles/colors';
import {fade} from 'material-ui/utils/colorManipulator';
import getMuiTheme from 'material-ui/styles/getMuiTheme';

export default getMuiTheme({
  palette: {
    primary1Color: cyan500,
    primary2Color: cyan700,
    primary3Color: grey400,
    accent1Color: pinkA200,
    accent2Color: grey100,
    accent3Color: grey500,
    textColor: darkBlack,
    alternateTextColor: white,
    canvasColor: white,
    borderColor: grey300,
    disabledColor: fade(darkBlack, 0.3),
    pickerHeaderColor: cyan500,
    clockCircleColor: fade(darkBlack, 0.07),
    shadowColor: fullBlack
  }
});
开发者ID:eukorolik,项目名称:poetez-frontend,代码行数:27,代码来源:theme.ts

示例3: getMuiTheme

    theme: (state, action) => {
        if (!state) {
            return getMuiTheme(baseTheme)
        }

        return state;
    }
开发者ID:nozzlegear,项目名称:Rustwrench,代码行数:7,代码来源:index.ts

示例4: getMuiTheme

import {cyan500} from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';

export const muiTheme = getMuiTheme({
  fontFamily: 'Open Sans, sans-serif',
  palette: {
    primary1Color: "#007ABE",
    accent1Color: "#DDB763"
  }
});
开发者ID:WhateverSkynet,项目名称:nodebb-plugin-moonlight,代码行数:10,代码来源:theme.ts


注:本文中的material-ui/styles/getMuiTheme.default函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。