Skip to content

UGOS Core

Front-end SDK for UGOS Pro app packages

Installation

bash
npm i @ugreen-nas/core
# yarn
yarn add @ugreen-nas/core
# pnpm
pnpm add @ugreen-nas/core

Quick start

1. Initialize

javascript
import UGOSCore from "@ugreen-nas/core"

// Initialize all UGOS modules (required)
UGOSCore.init()

2. On-demand imports

ugos-core supports importing feature modules on demand:

javascript
// Window management
import cloudWindow from "@ugreen-nas/core/cloudWindow"

Base styles

Box model

  • All elements use box-sizing: border-box so width and height include padding and border.

Focus

  • Remove the default outline on focus-visible.

Images

  • Disable image drag (-webkit-user-drag: none).
  • Disable image selection (user-select: none).

Documentation