1

我正在使用 Spring Boot 和 Thymeleaf 构建一个页面,并且我想为 Web UI 使用材料组件。到目前为止,使用 CDN 一切正常。

<head>
<title th:text="${page?.name}">Temporary Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- Required styles for MDC Web -->
<link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.css">

<!-- Required MDC Web JavaScript library -->
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.js"></script>
</head>

但是,我希望个性化主题颜色。我找到了这个链接,但它似乎使用了 npm。

有没有其他方法可以在没有 npm 的情况下生成主题 css 文件?

4

0 回答 0