fix: update color values to #27FF64 in various components and demos

This commit is contained in:
David Haz
2025-09-01 09:55:59 +03:00
parent 7c54716965
commit 06517042bd
8 changed files with 9 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ export const ribbons = createCodeObject(code, 'Animations/Ribbons', {
installation: `npm install ogl`, installation: `npm install ogl`,
usage: `<template> usage: `<template>
<Ribbons <Ribbons
:colors="['#ff9346', '#7cff67', '#ffee51', '#5227FF']" :colors="['#ff9346', '#7cff67', '#ffee51', '#27FF64']"
:base-spring="0.03" :base-spring="0.03"
:base-friction="0.9" :base-friction="0.9"
:base-thickness="30" :base-thickness="30"

View File

@@ -3,7 +3,7 @@ import { createCodeObject } from '../../../types/code';
export const folder = createCodeObject(code, 'Components/Folder', { export const folder = createCodeObject(code, 'Components/Folder', {
usage: `<template> usage: `<template>
<Folder :items="items" :size="2" color="#5227FF" class="my-folder-class" /> <Folder :items="items" :size="2" color="#27FF64" class="my-folder-class" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">

View File

@@ -22,7 +22,7 @@ interface RibbonsProps {
} }
const props = withDefaults(defineProps<RibbonsProps>(), { const props = withDefaults(defineProps<RibbonsProps>(), {
colors: () => ['#ff9346', '#7cff67', '#ffee51', '#5227FF'], colors: () => ['#ff9346', '#7cff67', '#ffee51', '#27FF64'],
baseSpring: 0.03, baseSpring: 0.03,
baseFriction: 0.9, baseFriction: 0.9,
baseThickness: 30, baseThickness: 30,

View File

@@ -32,7 +32,7 @@ const hexToRGB = (hex: string): [number, number, number] => {
}; };
const prepStops = (stops?: string[]) => { const prepStops = (stops?: string[]) => {
const base = (stops && stops.length ? stops : ['#FF9FFC', '#5227FF']).slice(0, MAX_COLORS); const base = (stops && stops.length ? stops : ['#FF9FFC', '#27FF64']).slice(0, MAX_COLORS);
if (base.length === 1) base.push(base[0]); if (base.length === 1) base.push(base[0]);
while (base.length < MAX_COLORS) base.push(base[base.length - 1]); while (base.length < MAX_COLORS) base.push(base[base.length - 1]);
const arr: [number, number, number][] = []; const arr: [number, number, number][] = [];

View File

@@ -32,7 +32,7 @@ interface Props {
} }
const props = withDefaults(defineProps<Props>(), { const props = withDefaults(defineProps<Props>(), {
color: '#5227FF', color: '#27FF64',
size: 1, size: 1,
items: () => [], items: () => [],
class: '' class: ''

View File

@@ -8,7 +8,7 @@
<a <a
ref="linkRef" ref="linkRef"
href="https://github.com/DavidHDev/vue-bits" href="https://github.com/DavidHDev/vue-bits"
class="text-center font-black text-[2rem] md:text-[4rem] transition-all duration-300 ease-in-out hover:text-[#5227ff]" class="text-center font-black text-[2rem] md:text-[4rem] transition-all duration-300 ease-in-out hover:text-[#27FF64]"
:style="{ minWidth: minWidth + 'px' }" :style="{ minWidth: minWidth + 'px' }"
@mouseenter="handleMouseEnter" @mouseenter="handleMouseEnter"
@mouseleave="handleMouseLeave" @mouseleave="handleMouseLeave"

View File

@@ -95,7 +95,7 @@ const propData = [
{ {
name: 'colors', name: 'colors',
type: 'string[]', type: 'string[]',
default: "['#5227FF']", default: "['#27FF64']",
description: 'An array of color strings to be used for the ribbons.' description: 'An array of color strings to be used for the ribbons.'
}, },
{ {

View File

@@ -36,14 +36,14 @@ import PreviewSlider from '@/components/common/PreviewSlider.vue';
import PropTable from '@/components/common/PropTable.vue'; import PropTable from '@/components/common/PropTable.vue';
import TabbedLayout from '@/components/common/TabbedLayout.vue'; import TabbedLayout from '@/components/common/TabbedLayout.vue';
const color = ref('#5227FF'); const color = ref('#27FF64');
const size = ref(2); const size = ref(2);
const propData = [ const propData = [
{ {
name: 'color', name: 'color',
type: 'string', type: 'string',
default: '#5227FF', default: '#27FF64',
description: 'The color of the folder.' description: 'The color of the folder.'
}, },
{ {