8000 GitHub - alexovn/vgui: VGUI. Style and component libraries · GitHub
[go: up one dir, main page]

Skip to content
alexovnPublic

About

VGUI. Style and component libraries

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

VGUI

This repo was created to show respect to classic Valve Graphic User Interface (VGUI) which was used for many years in projects such as Steam, Half-Life 1-2 and CS 1.6. Rather than a detailed reconstruction, it is an attempt to recreate the nostalgic look. I have tried my best to analyze many sources and gather all the information in one place.

I have divided this repo into several packages that can be used together or separately to create your own retro-styled interfaces.

  • vgui — styles, colors, fonts etc. without any framework binding.
  • vue — ready-to-use components based on vgui package and Reka UI library, powered by Vue framework.
  • playground — a demo for showing all controls and its states based on vgui and vue packages, powered by Tailwind CSS.

Installation

VGUI styles without any framework binding

npm install @alexovn/vgui

Ready-to-use components based on vgui package and Reka UI library, powered by Vue framework

npm install @alexovn/vgui-vue @alexovn/vgui

Usage Example

<script setup lang="ts">
import { UiSelect, UiThemeProvider } from '@alexovn/vgui-vue'
import { ref } from 'vue'
import '@alexovn/vgui'

const value = ref('internet')
const options = [
  { label: 'Internet', value: 'internet' },
  { label: 'LAN', value: 'lan' },
]
</script>

<template>
  <UiThemeProvider theme="olive">
    <UiSelect
      v-model="value"
      :options="options"
      label="Server source"
    />
  </UiThemeProvider>
</template>

Development

Use Node ^22.22.2 || >=24.15.0 and pnpm 12.21.0. Run pnpm install and pnpm dev to open the playground.

Sources

This repo wouldn't have been possible without different sources that I used during development. So I want to say BIG THANKS to their authors.

License

Made with ❤️

Published under the MIT license.

About

VGUI. Style and component libraries

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0