Skip to content
Snippets Groups Projects
Commit f9be636a authored by chris's avatar chris
Browse files

add fonts

parent 67c9a771
No related branches found
No related tags found
1 merge request!33Layouts themes
...@@ -22,6 +22,18 @@ module.exports = function override(config, env) { ...@@ -22,6 +22,18 @@ module.exports = function override(config, env) {
{ {
test: /\.svg$/, test: /\.svg$/,
use: "svg-inline-loader" use: "svg-inline-loader"
},
{
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
use: [
{
loader: "file-loader",
options: {
name: "[name].[ext]",
outputPath: "fonts/"
}
}
]
} }
] ]
} }
......
...@@ -22,6 +22,18 @@ module.exports = function override(config, env) { ...@@ -22,6 +22,18 @@ module.exports = function override(config, env) {
{ {
test: /\.svg$/, test: /\.svg$/,
use: "svg-inline-loader" use: "svg-inline-loader"
},
{
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
use: [
{
loader: "file-loader",
options: {
name: "[name].[ext]",
outputPath: "fonts/"
}
}
]
} }
] ]
} }
......
...@@ -7,5 +7,9 @@ ...@@ -7,5 +7,9 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@pubsweet/ui-toolkit": "^2.2.13",
"styled-components": "^4.1.1"
} }
} }
...@@ -8,5 +8,12 @@ ...@@ -8,5 +8,12 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"dependencies": {} "dependencies": {
"@pubsweet/ui-toolkit": "^2.2.13",
"cokourier-prime-sans":
"git+https://gitlab.coko.foundation/julientaq/cokourier-sans-prime.git",
"styled-components": "^4.1.1",
"typeface-fira-sans-condensed": "^0.0.54",
"typeface-vollkorn": "^0.0.54"
}
} }
/* eslint-disable import/extensions */ /* eslint-disable import/extensions */
// import "typeface-fira-sans-condensed"; import "typeface-fira-sans-condensed";
// import "typeface-vollkorn"; import "typeface-vollkorn";
const cokoTheme = { const cokoTheme = {
/* Colors */ /* Colors */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment