From 3a21a5e39b47120e5139269138eae0e2ca2efcd4 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Sat, 11 Jun 2022 17:27:57 +0800 Subject: [PATCH] feat(create-vite): use framework brand glow color (#8539) --- packages/create-vite/template-lit-ts/package.json | 4 ++-- .../create-vite/template-lit-ts/src/my-element.ts | 15 +++++++++------ packages/create-vite/template-lit/package.json | 4 ++-- .../create-vite/template-lit/src/my-element.js | 15 +++++++++------ .../create-vite/template-preact-ts/src/app.css | 3 +++ .../create-vite/template-preact-ts/src/app.tsx | 2 +- packages/create-vite/template-preact/src/app.css | 3 +++ packages/create-vite/template-preact/src/app.jsx | 2 +- .../create-vite/template-react-ts/src/App.css | 3 +++ .../create-vite/template-react-ts/src/App.tsx | 2 +- packages/create-vite/template-react/src/App.css | 3 +++ packages/create-vite/template-react/src/App.jsx | 2 +- .../create-vite/template-svelte-ts/src/App.svelte | 11 +++++++---- .../create-vite/template-svelte/src/App.svelte | 11 +++++++---- .../create-vite/template-vanilla-ts/src/main.ts | 8 ++++++-- .../create-vite/template-vanilla-ts/src/style.css | 3 +++ packages/create-vite/template-vanilla/main.js | 8 ++++++-- packages/create-vite/template-vanilla/style.css | 3 +++ packages/create-vite/template-vue-ts/src/App.vue | 7 +++++-- packages/create-vite/template-vue/src/App.vue | 7 +++++-- 20 files changed, 80 insertions(+), 36 deletions(-) diff --git a/packages/create-vite/template-lit-ts/package.json b/packages/create-vite/template-lit-ts/package.json index 57358902f93458..b9e56a3b526d9c 100644 --- a/packages/create-vite/template-lit-ts/package.json +++ b/packages/create-vite/template-lit-ts/package.json @@ -3,9 +3,9 @@ "private": true, "version": "0.0.0", "type": "module", - "main": "dist/my-element.es.mjs", + "main": "dist/my-element.es.js", "exports": { - ".": "./dist/my-element.es.mjs" + ".": "./dist/my-element.es.js" }, "types": "types/my-element.d.ts", "files": [ diff --git a/packages/create-vite/template-lit-ts/src/my-element.ts b/packages/create-vite/template-lit-ts/src/my-element.ts index fe5707212e5bdd..ba01ce52154a0d 100644 --- a/packages/create-vite/template-lit-ts/src/my-element.ts +++ b/packages/create-vite/template-lit-ts/src/my-element.ts @@ -26,12 +26,12 @@ export class MyElement extends LitElement { render() { return html`
- - + + + + + +
@@ -63,6 +63,9 @@ export class MyElement extends LitElement { .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } + .logo.lit:hover { + filter: drop-shadow(0 0 2em #325cffaa); + } .card { padding: 2em; diff --git a/packages/create-vite/template-lit/package.json b/packages/create-vite/template-lit/package.json index 0ef4af046dfa8d..4eafb31f76de30 100644 --- a/packages/create-vite/template-lit/package.json +++ b/packages/create-vite/template-lit/package.json @@ -3,9 +3,9 @@ "private": true, "version": "0.0.0", "type": "module", - "main": "dist/my-element.es.mjs", + "main": "dist/my-element.es.js", "exports": { - ".": "./dist/my-element.es.mjs" + ".": "./dist/my-element.es.js" }, "files": [ "dist" diff --git a/packages/create-vite/template-lit/src/my-element.js b/packages/create-vite/template-lit/src/my-element.js index f5ea09b7d1ea22..74fde11f608122 100644 --- a/packages/create-vite/template-lit/src/my-element.js +++ b/packages/create-vite/template-lit/src/my-element.js @@ -32,12 +32,12 @@ export class MyElement extends LitElement { render() { return html`
- - + + + + + +
@@ -70,6 +70,9 @@ export class MyElement extends LitElement { .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } + .logo.lit:hover { + filter: drop-shadow(0 0 2em #325cffaa); + } .card { padding: 2em; diff --git a/packages/create-vite/template-preact-ts/src/app.css b/packages/create-vite/template-preact-ts/src/app.css index 9e9f9c9c6884c9..088ed3ace55196 100644 --- a/packages/create-vite/template-preact-ts/src/app.css +++ b/packages/create-vite/template-preact-ts/src/app.css @@ -12,6 +12,9 @@ .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } +.logo.preact:hover { + filter: drop-shadow(0 0 2em #673ab8aa); +} .card { padding: 2em; diff --git a/packages/create-vite/template-preact-ts/src/app.tsx b/packages/create-vite/template-preact-ts/src/app.tsx index db652c2630f10b..13cf0b1b01f2fc 100644 --- a/packages/create-vite/template-preact-ts/src/app.tsx +++ b/packages/create-vite/template-preact-ts/src/app.tsx @@ -13,7 +13,7 @@ export function App() { - +

Vite + Preact

diff --git a/packages/create-vite/template-preact/src/app.css b/packages/create-vite/template-preact/src/app.css index 9e9f9c9c6884c9..088ed3ace55196 100644 --- a/packages/create-vite/template-preact/src/app.css +++ b/packages/create-vite/template-preact/src/app.css @@ -12,6 +12,9 @@ .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } +.logo.preact:hover { + filter: drop-shadow(0 0 2em #673ab8aa); +} .card { padding: 2em; diff --git a/packages/create-vite/template-preact/src/app.jsx b/packages/create-vite/template-preact/src/app.jsx index c2ce201061e5bd..717cc480198df8 100644 --- a/packages/create-vite/template-preact/src/app.jsx +++ b/packages/create-vite/template-preact/src/app.jsx @@ -13,7 +13,7 @@ export function App() { - +

Vite + Preact

diff --git a/packages/create-vite/template-react-ts/src/App.css b/packages/create-vite/template-react-ts/src/App.css index 514d6bff3fbc88..2c5e2ef5cd1a2e 100644 --- a/packages/create-vite/template-react-ts/src/App.css +++ b/packages/create-vite/template-react-ts/src/App.css @@ -13,6 +13,9 @@ .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } +.logo.react:hover { + filter: drop-shadow(0 0 2em #61dafbaa); +} @keyframes logo-spin { from { diff --git a/packages/create-vite/template-react-ts/src/App.tsx b/packages/create-vite/template-react-ts/src/App.tsx index 8cfb82d3fbf3c2..dfe8ceddf40982 100644 --- a/packages/create-vite/template-react-ts/src/App.tsx +++ b/packages/create-vite/template-react-ts/src/App.tsx @@ -13,7 +13,7 @@ function App() { Vite logo - React logo + React logo

Vite + React

diff --git a/packages/create-vite/template-react/src/App.css b/packages/create-vite/template-react/src/App.css index 514d6bff3fbc88..2c5e2ef5cd1a2e 100644 --- a/packages/create-vite/template-react/src/App.css +++ b/packages/create-vite/template-react/src/App.css @@ -13,6 +13,9 @@ .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } +.logo.react:hover { + filter: drop-shadow(0 0 2em #61dafbaa); +} @keyframes logo-spin { from { diff --git a/packages/create-vite/template-react/src/App.jsx b/packages/create-vite/template-react/src/App.jsx index 78ced9c794224d..14be1971f75675 100644 --- a/packages/create-vite/template-react/src/App.jsx +++ b/packages/create-vite/template-react/src/App.jsx @@ -13,7 +13,7 @@ function App() { Vite logo - React logo + React logo

Vite + React

diff --git a/packages/create-vite/template-svelte-ts/src/App.svelte b/packages/create-vite/template-svelte-ts/src/App.svelte index dcc7939896dd46..480e1d072d5a2e 100644 --- a/packages/create-vite/template-svelte-ts/src/App.svelte +++ b/packages/create-vite/template-svelte-ts/src/App.svelte @@ -7,10 +7,10 @@
- Vite Logo + - Svelte Logo +

Vite + Svelte

@@ -29,14 +29,17 @@
diff --git a/packages/create-vite/template-vue/src/App.vue b/packages/create-vite/template-vue/src/App.vue index 417581c657f3e6..6febdb7581ea83 100644 --- a/packages/create-vite/template-vue/src/App.vue +++ b/packages/create-vite/template-vue/src/App.vue @@ -7,10 +7,10 @@ import HelloWorld from './components/HelloWorld.vue'